mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Show "ago" timestamp in mod queue only when over alert threshold
This commit is contained in:
@@ -204,9 +204,9 @@ const ModQueueRow = ({ comment, showBoardColumn = false }: ModQueueRowProps) =>
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.time}>
|
<div className={styles.time}>
|
||||||
{isAwaitingApproval ? (
|
{isAwaitingApproval && isOverThreshold ? (
|
||||||
<>
|
<>
|
||||||
{getFormattedDate(timestamp)} (<span className={`${isOverThreshold ? styles.alert : ''}`}>{getFormattedTimeAgo(timestamp)}</span>)
|
{getFormattedDate(timestamp)} (<span className={styles.alert}>{getFormattedTimeAgo(timestamp)}</span>)
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
getFormattedDate(timestamp)
|
getFormattedDate(timestamp)
|
||||||
|
|||||||
Reference in New Issue
Block a user