Display delta for dates up to 96h (4d) ago
This commit is contained in:
@@ -35,7 +35,7 @@ export const SignatureListItem = ({ signature }: SignatureListItemProps) => {
|
|||||||
return "Just now";
|
return "Just now";
|
||||||
} else if (diffMinutes < 60) {
|
} else if (diffMinutes < 60) {
|
||||||
return `${diffMinutes}m ago`;
|
return `${diffMinutes}m ago`;
|
||||||
} else if (diffHours < 24) {
|
} else if (diffHours < 96) {
|
||||||
return `${diffHours}h ago`;
|
return `${diffHours}h ago`;
|
||||||
} else {
|
} else {
|
||||||
return date.toLocaleString();
|
return date.toLocaleString();
|
||||||
|
|||||||
Reference in New Issue
Block a user