disabled when market closes
This commit is contained in:
parent
b5f0911867
commit
318e76a9c4
|
@ -207,7 +207,12 @@ function OpenAnswer(props: {
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
<Col
|
<Col
|
||||||
className="bg-greyscale-1 relative w-full rounded-lg drop-shadow-sm transition-all hover:drop-shadow-md"
|
className={clsx(
|
||||||
|
'bg-greyscale-1 relative w-full rounded-lg transition-all',
|
||||||
|
tradingAllowed(contract)
|
||||||
|
? 'text-greyscale-7 drop-shadow-sm hover:drop-shadow-md'
|
||||||
|
: 'text-greyscale-5 pointer-events-none'
|
||||||
|
)}
|
||||||
onClick={() => setOpen(true)}
|
onClick={() => setOpen(true)}
|
||||||
>
|
>
|
||||||
<Row className="z-20 -mb-1 justify-between py-2 px-3">
|
<Row className="z-20 -mb-1 justify-between py-2 px-3">
|
||||||
|
@ -220,23 +225,11 @@ function OpenAnswer(props: {
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<Linkify
|
<Linkify
|
||||||
className={clsx(
|
className="text-md cursor-pointer whitespace-pre-line"
|
||||||
'text-md cursor-pointer whitespace-pre-line',
|
|
||||||
tradingAllowed(contract)
|
|
||||||
? 'text-greyscale-7'
|
|
||||||
: 'text-greyscale-6'
|
|
||||||
)}
|
|
||||||
text={text}
|
text={text}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div className="my-auto text-xl">{probPercent}</div>
|
||||||
className={clsx(
|
|
||||||
'my-auto text-xl ',
|
|
||||||
tradingAllowed(contract) ? 'text-greyscale-7' : 'text-greyscale-6'
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
{probPercent}
|
|
||||||
</div>
|
|
||||||
</Row>
|
</Row>
|
||||||
<hr
|
<hr
|
||||||
color={color}
|
color={color}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user