diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index 6ab9a689..e79edfda 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -1,7 +1,10 @@ import { DotsHorizontalIcon } from '@heroicons/react/outline' import clsx from 'clsx' +import dayjs from 'dayjs' import { useState } from 'react' + import { Contract } from '../../../common/contract' +import { formatMoney } from '../../../common/util/format' import { useFoldsWithTags } from '../../hooks/use-fold' import { useUser } from '../../hooks/use-user' import { @@ -28,6 +31,10 @@ export function ContractInfoDialog(props: { contract: Contract }) { (fold) => fold.followCount > 1 || user?.id === fold.curatorId ) + const formatTime = (dt: number) => dayjs(dt).format('MMM DD, YYYY hh:mm a z') + + const { createdTime, closeTime, resolutionTime } = contract + return ( <>