add seconds to trade history
This commit is contained in:
parent
a0dbeef331
commit
d1abd846f0
|
@ -99,9 +99,17 @@ export const Row = ({ children }: RowProps) => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export const TableDateDisplay = ({ date }: { date: string | number }) => (
|
export const TableDateDisplay = ({
|
||||||
|
date,
|
||||||
|
showSeconds,
|
||||||
|
}: {
|
||||||
|
date: string | number
|
||||||
|
showSeconds?: boolean
|
||||||
|
}) => (
|
||||||
<>
|
<>
|
||||||
<p className="mb-0 text-th-fgd-2">{dayjs(date).format('DD MMM YYYY')}</p>
|
<p className="mb-0 text-th-fgd-2">{dayjs(date).format('DD MMM YYYY')}</p>
|
||||||
<p className="mb-0 text-xs">{dayjs(date).format('h:mma')}</p>
|
<p className="mb-0 text-xs">
|
||||||
|
{dayjs(date).format(showSeconds ? 'h:mm:ssa' : 'h:mma')}
|
||||||
|
</p>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
|
@ -451,6 +451,7 @@ const TradeHistoryTable = ({
|
||||||
date={formatTradeDateTime(
|
date={formatTradeDateTime(
|
||||||
trade.loadTimestamp || trade.timestamp
|
trade.loadTimestamp || trade.timestamp
|
||||||
)}
|
)}
|
||||||
|
showSeconds
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
t('recent')
|
t('recent')
|
||||||
|
@ -508,6 +509,7 @@ const TradeHistoryTable = ({
|
||||||
date={formatTradeDateTime(
|
date={formatTradeDateTime(
|
||||||
trade.loadTimestamp || trade.timestamp
|
trade.loadTimestamp || trade.timestamp
|
||||||
)}
|
)}
|
||||||
|
showSeconds
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
t('recent')
|
t('recent')
|
||||||
|
|
Loading…
Reference in New Issue