Improve card style flashing on load
This commit is contained in:
parent
78b27ee964
commit
1af03bc53d
|
@ -24,27 +24,26 @@ export function ContractCard(props: {
|
|||
const { probPercent } = contractMetrics(contract)
|
||||
|
||||
return (
|
||||
<Link href={contractPath(contract)}>
|
||||
<a
|
||||
className={clsx(
|
||||
'col-span-1 bg-white hover:bg-gray-100 shadow-md rounded-lg list-none card card-body p-6',
|
||||
className
|
||||
)}
|
||||
>
|
||||
<Row className="justify-between gap-4 mb-2">
|
||||
<p className="font-medium text-indigo-700">{question}</p>
|
||||
<ResolutionOrChance
|
||||
className="items-center"
|
||||
resolution={resolution}
|
||||
probPercent={probPercent}
|
||||
/>
|
||||
</Row>
|
||||
<AbbrContractDetails
|
||||
contract={contract}
|
||||
showHotVolume={showHotVolume}
|
||||
/>
|
||||
</a>
|
||||
</Link>
|
||||
<div className={className}>
|
||||
<Link href={contractPath(contract)}>
|
||||
<a>
|
||||
<div className="bg-white hover:bg-gray-100 shadow-md rounded-lg p-6">
|
||||
<Row className="justify-between gap-4 mb-2">
|
||||
<p className="font-medium text-indigo-700">{question}</p>
|
||||
<ResolutionOrChance
|
||||
className="items-center"
|
||||
resolution={resolution}
|
||||
probPercent={probPercent}
|
||||
/>
|
||||
</Row>
|
||||
<AbbrContractDetails
|
||||
contract={contract}
|
||||
showHotVolume={showHotVolume}
|
||||
/>
|
||||
</div>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user