From 2f3ae5192eff205728ffe3063ffcdf30160d50bb Mon Sep 17 00:00:00 2001 From: mantikoros Date: Fri, 30 Sep 2022 20:30:45 -0500 Subject: [PATCH] embed: disable clicking contract details --- web/components/contract/contract-details.tsx | 42 +++++++++++++++----- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index b06c6381..d0aa0ee9 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -183,6 +183,7 @@ export function MarketSubheader(props: { contract={contract} resolvedDate={resolvedDate} isCreator={isCreator} + disabled={disabled} /> {!isMobile && ( @@ -200,8 +201,9 @@ export function CloseOrResolveTime(props: { contract: Contract resolvedDate: any isCreator: boolean + disabled?: boolean }) { - const { contract, resolvedDate, isCreator } = props + const { contract, resolvedDate, isCreator, disabled } = props const { resolutionTime, closeTime } = contract if (!!closeTime || !!resolvedDate) { return ( @@ -225,6 +227,7 @@ export function CloseOrResolveTime(props: { closeTime={closeTime} contract={contract} isCreator={isCreator ?? false} + disabled={disabled} /> )} @@ -245,7 +248,8 @@ export function MarketGroups(props: { return ( <> - + + {!disabled && user && (