Add back useState to import

This commit is contained in:
James Grugett 2022-05-18 10:57:45 -04:00
parent acd59767e4
commit d51a20e2e0

View File

@ -1,12 +1,11 @@
// From https://tailwindui.com/components/application-ui/lists/feeds // From https://tailwindui.com/components/application-ui/lists/feeds
import React, { Fragment, useRef } from 'react' import React, { useState } from 'react'
import * as _ from 'lodash' import * as _ from 'lodash'
import { import {
BanIcon, BanIcon,
CheckIcon, CheckIcon,
DotsVerticalIcon, DotsVerticalIcon,
LockClosedIcon, LockClosedIcon,
UsersIcon,
XIcon, XIcon,
} from '@heroicons/react/solid' } from '@heroicons/react/solid'
import clsx from 'clsx' import clsx from 'clsx'
@ -18,14 +17,10 @@ import {
contractPath, contractPath,
tradingAllowed, tradingAllowed,
} from 'web/lib/firebase/contracts' } from 'web/lib/firebase/contracts'
import { useUser } from 'web/hooks/use-user'
import { formatMoney } from 'common/util/format'
import { BinaryResolutionOrChance } from '../contract/contract-card' import { BinaryResolutionOrChance } from '../contract/contract-card'
import { SiteLink } from '../site-link' import { SiteLink } from '../site-link'
import { Col } from '../layout/col' import { Col } from '../layout/col'
import { UserLink } from '../user-page' import { UserLink } from '../user-page'
import { Bet } from 'web/lib/firebase/bets'
import { JoinSpans } from '../join-spans'
import BetRow from '../bet-row' import BetRow from '../bet-row'
import { Avatar } from '../avatar' import { Avatar } from '../avatar'
import { ActivityItem } from './activity-items' import { ActivityItem } from './activity-items'
@ -182,8 +177,6 @@ export function FeedQuestion(props: {
function FeedDescription(props: { contract: Contract }) { function FeedDescription(props: { contract: Contract }) {
const { contract } = props const { contract } = props
const { creatorName, creatorUsername } = contract const { creatorName, creatorUsername } = contract
const user = useUser()
const isCreator = user?.id === contract.creatorId
return ( return (
<> <>