oops disabled
This commit is contained in:
parent
94487f0a04
commit
71cc2f51ee
|
@ -209,35 +209,33 @@ 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>
|
||||||
<Button
|
{tradingAllowed(contract) && (
|
||||||
size="2xs"
|
<Button
|
||||||
color="gray-outline"
|
size="2xs"
|
||||||
onClick={() => setOpen(true)}
|
color="gray-outline"
|
||||||
className="my-auto"
|
onClick={() => setOpen(true)}
|
||||||
>
|
className="my-auto"
|
||||||
BUY
|
>
|
||||||
</Button>
|
BUY
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</Row>
|
</Row>
|
||||||
</Row>
|
</Row>
|
||||||
<hr
|
<hr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user