From 108f0afb95249577eb731694b682ac7aab621125 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Fri, 8 Apr 2022 14:27:17 -0500 Subject: [PATCH] contract card: remove created time; inline info dialog button --- web/components/contract/contract-card.tsx | 61 +++++++++++------------ 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index ecd42d9d..bf53f0c4 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -194,36 +194,38 @@ export function ContractDetails(props: { /> - - + {(!!closeTime || !!resolvedDate) && ( + + - + {/* {createdDate} - + */} - {resolvedDate && contract.resolutionTime ? ( - <> - {' - '} - - {resolvedDate} - - - ) : null} + {resolvedDate && contract.resolutionTime ? ( + <> + {/* {' - '} */} + + {resolvedDate} + + + ) : null} - {!resolvedDate && closeTime && ( - <> - {' - '}{' '} - - - )} - + {!resolvedDate && closeTime && ( + <> + {/* {' - '}{' '} */} + + + )} + + )} @@ -231,12 +233,7 @@ export function ContractDetails(props: {
{volumeLabel}
- {!hideShareButtons && ( - <> -
- - - )} + {!hideShareButtons && } )