Show "ago" timestamp in mod queue only when over alert threshold

This commit is contained in:
plebeius
2026-01-11 15:42:21 +01:00
parent 3adb52e2a5
commit 2c8e05cd68
+2 -2
View File
@@ -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)