From 16f4fb94900fc14cababb79a486d44790a85c1e4 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Thu, 4 Aug 2022 22:47:59 -0700 Subject: [PATCH] disable clicking on group in embed --- web/components/contract/contract-details.tsx | 34 ++++++++++++-------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index 9d12496d..936f5e24 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -145,6 +145,15 @@ export function ContractDetails(props: { const user = useUser() const [open, setOpen] = useState(false) + const groupInfo = ( + + + + {groupToDisplay ? groupToDisplay.name : 'No group'} + + + ) + return ( @@ -166,19 +175,18 @@ export function ContractDetails(props: { {!disabled && } - + {disabled ? ( + groupInfo + ) : ( + + )}