oops disabled

This commit is contained in:
ingawei 2022-10-04 15:29:15 -07:00
parent 94487f0a04
commit 71cc2f51ee

View File

@ -209,27 +209,24 @@ function OpenAnswer(props: {
<Col <Col
className={clsx( className={clsx(
'bg-greyscale-1 relative w-full rounded-lg transition-all', 'bg-greyscale-1 relative w-full rounded-lg transition-all',
tradingAllowed(contract) tradingAllowed(contract) ? 'text-greyscale-7' : 'text-greyscale-5'
? 'text-greyscale-7'
: 'text-greyscale-5 pointer-events-none'
)} )}
> >
<Row className="z-20 -mb-1 justify-between gap-2 py-2 px-3"> <Row className="z-20 -mb-1 justify-between gap-2 py-2 px-3">
<div> <Row>
<span>
<Avatar <Avatar
className="mr-2 inline h-5 w-5 border border-transparent transition-transform hover:border-none" className="mr-2 inline h-5 w-5 border border-transparent transition-transform hover:border-none"
username={username} username={username}
avatarUrl={avatarUrl} avatarUrl={avatarUrl}
/> />
</span>
<Linkify <Linkify
className="text-md cursor-pointer whitespace-pre-line" className="text-md cursor-pointer whitespace-pre-line"
text={text} text={text}
/> />
</div> </Row>
<Row className="gap-2"> <Row className="gap-2">
<div className="my-auto text-xl">{probPercent}</div> <div className="my-auto text-xl">{probPercent}</div>
{tradingAllowed(contract) && (
<Button <Button
size="2xs" size="2xs"
color="gray-outline" color="gray-outline"
@ -238,6 +235,7 @@ function OpenAnswer(props: {
> >
BUY BUY
</Button> </Button>
)}
</Row> </Row>
</Row> </Row>
<hr <hr