Browse Source

Add time toltip to timeAgo

pull/307/head
Tilen Komel 1 year ago
parent
commit
48eb931c37
  1. 6
      src/components/generic/TimeAgo.tsx

6
src/components/generic/TimeAgo.tsx

@ -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>
);
};

Loading…
Cancel
Save