Add time toltip to timeAgo

This commit is contained in:
Tilen Komel
2025-02-03 19:07:27 +01:00
parent fb1b4c6cc5
commit 48eb931c37
+5 -1
View File
@@ -37,5 +37,9 @@ const getTimeAgo = (
};
export const TimeAgo = ({ timestamp }: TimeAgoProps): JSX.Element => {
return <span>{getTimeAgo(timestamp)}</span>;
return (
<span title={new Date(timestamp).toLocaleString()}>
{getTimeAgo(timestamp)}
</span>
);
};