diff --git a/web/components/answers/answer-item.tsx b/web/components/answers/answer-item.tsx index a761c151..7d371ad8 100644 --- a/web/components/answers/answer-item.tsx +++ b/web/components/answers/answer-item.tsx @@ -8,7 +8,6 @@ import { Col } from '../layout/col' import { Row } from '../layout/row' import { Avatar } from '../avatar' import { SiteLink } from '../site-link' -import { DateTimeTooltip } from '../datetime-tooltip' import dayjs from 'dayjs' import { BuyButton } from '../yes-no-selector' import { formatPercent } from '../../../common/util/format' @@ -39,7 +38,6 @@ export function AnswerItem(props: { const { username, avatarUrl, name, createdTime, number, text } = answer const isChosen = chosenProb !== undefined - const createdDate = dayjs(createdTime).format('MMM D') const prob = getOutcomeProbability(totalShares, answer.id) const roundedProb = Math.round(prob * 100) const probPercent = formatPercent(prob) @@ -49,9 +47,9 @@ export function AnswerItem(props: { const [isBetting, setIsBetting] = useState(false) return ( - !isBetting && setIsBetting(true)} >
{text}
- {/* TODO: replace with ContractDetails */} @@ -74,6 +73,7 @@ export function AnswerItem(props: {
{name}
+ {/* TODO: Show total pool */}
{isBetting && ( @@ -190,6 +190,6 @@ export function AnswerItem(props: { )} )} - + ) }