Remove 3 unnecessary DOM elements from card
This commit is contained in:
parent
3805adff58
commit
c70ec1dad3
|
@ -25,25 +25,24 @@ export function ContractCard(props: {
|
|||
|
||||
return (
|
||||
<Link href={contractPath(contract)}>
|
||||
<a className={clsx('col-span-1', className)}>
|
||||
<li className="bg-white hover:bg-gray-100 shadow-md rounded-lg divide-y divide-gray-200 list-none">
|
||||
<div className="card">
|
||||
<div className="card-body 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>
|
||||
</div>
|
||||
</li>
|
||||
<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>
|
||||
)
|
||||
|
|
|
@ -55,11 +55,11 @@ const HotMarkets = (props: { hotContracts: Contract[] }) => {
|
|||
<div className="w-full bg-indigo-50 border-2 border-indigo-100 p-6 rounded-lg shadow-md">
|
||||
<Title className="mt-0" text="🔥 Markets" />
|
||||
<Col className="gap-6">
|
||||
<Col className="md:flex-row gap-6">
|
||||
<Col className="md:flex-row items-start gap-6">
|
||||
<ContractCard className="flex-1" contract={c1} showHotVolume />
|
||||
<ContractCard className="flex-1" contract={c2} showHotVolume />
|
||||
</Col>
|
||||
<Col className="md:flex-row gap-6">
|
||||
<Col className="md:flex-row items-start gap-6">
|
||||
<ContractCard className="flex-1" contract={c3} showHotVolume />
|
||||
<ContractCard className="flex-1" contract={c4} showHotVolume />
|
||||
</Col>
|
||||
|
|
Loading…
Reference in New Issue
Block a user