Add time toltip to timeAgo
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user