Embedded market: Make only top section a link

This commit is contained in:
James Grugett 2022-03-20 18:17:37 -05:00
parent cc15eb2044
commit 7df69dda4d

View File

@ -86,7 +86,8 @@ function ContractEmbed(props: { contract: Contract; bets: Bet[] }) {
const href = `https://${DOMAIN}${contractPath(contract)}`
return (
<Col className="w-full flex-1 bg-white py-2 relative">
<Col className="w-full flex-1 bg-white py-2">
<Col className="relative">
<SiteLink
className="absolute top-0 left-0 w-full h-full z-20"
href={href}
@ -101,10 +102,13 @@ function ContractEmbed(props: { contract: Contract; bets: Bet[] }) {
<Row className="items-center justify-between gap-4 px-2">
<ContractDetails contract={contract} isCreator={false} hideTweetBtn />
{(isBinary || resolution) && <ResolutionOrChance contract={contract} />}
{(isBinary || resolution) && (
<ResolutionOrChance contract={contract} />
)}
</Row>
<Spacer h={2} />
</Col>
<div className="mx-1">
{isBinary ? (