contract card: remove created time; inline info dialog button

This commit is contained in:
mantikoros 2022-04-08 14:27:17 -05:00
parent 238af975e3
commit 108f0afb95

View File

@ -194,36 +194,38 @@ export function ContractDetails(props: {
/> />
</Row> </Row>
<Row className="items-center gap-1"> {(!!closeTime || !!resolvedDate) && (
<ClockIcon className="h-5 w-5" /> <Row className="items-center gap-1">
<ClockIcon className="h-5 w-5" />
<DateTimeTooltip text="Market created:" time={contract.createdTime}> {/* <DateTimeTooltip text="Market created:" time={contract.createdTime}>
{createdDate} {createdDate}
</DateTimeTooltip> </DateTimeTooltip> */}
{resolvedDate && contract.resolutionTime ? ( {resolvedDate && contract.resolutionTime ? (
<> <>
{' - '} {/* {' - '} */}
<DateTimeTooltip <DateTimeTooltip
text="Market resolved:" text="Market resolved:"
time={contract.resolutionTime} time={contract.resolutionTime}
> >
{resolvedDate} {resolvedDate}
</DateTimeTooltip> </DateTimeTooltip>
</> </>
) : null} ) : null}
{!resolvedDate && closeTime && ( {!resolvedDate && closeTime && (
<> <>
{' - '}{' '} {/* {' - '}{' '} */}
<EditableCloseDate <EditableCloseDate
closeTime={closeTime} closeTime={closeTime}
contract={contract} contract={contract}
isCreator={isCreator ?? false} isCreator={isCreator ?? false}
/> />
</> </>
)} )}
</Row> </Row>
)}
<Row className="items-center gap-1"> <Row className="items-center gap-1">
<DatabaseIcon className="h-5 w-5" /> <DatabaseIcon className="h-5 w-5" />
@ -231,12 +233,7 @@ export function ContractDetails(props: {
<div className="whitespace-nowrap">{volumeLabel}</div> <div className="whitespace-nowrap">{volumeLabel}</div>
</Row> </Row>
{!hideShareButtons && ( {!hideShareButtons && <ContractInfoDialog contract={contract} />}
<>
<div className="flex-1" />
<ContractInfoDialog contract={contract} />
</>
)}
</Row> </Row>
</Col> </Col>
) )