From 44f3b3072f0e13c0aedd79dbf68efa2d1403a3c9 Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 26 Apr 2025 20:16:42 +0200 Subject: [PATCH] courrier clean 2$ --- app/courrier/page.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 230a8a7c..f3e98b4e 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -58,6 +58,7 @@ import { formatForwardedEmail, formatReplyEmail, formatEmailForReplyOrForward, + formatEmailDate, // Add this import EmailMessage as FormatterEmailMessage, cleanHtmlContent } from '@/lib/utils/email-formatter'; @@ -339,17 +340,6 @@ const getFolderIcon = (folder: string) => { // Update the initialSidebarItems to be empty since we're using folders under Accounts now const initialSidebarItems: any[] = []; // Remove the default Inbox item -function formatDate(date: Date | null): string { - if (!date) return ''; - return new Intl.DateTimeFormat('fr-FR', { - day: '2-digit', - month: '2-digit', - year: 'numeric', - hour: '2-digit', - minute: '2-digit' - }).format(date); -} - /** * @deprecated This function is deprecated and will be removed in future versions. * Use the ReplyContent component directly instead. @@ -1402,7 +1392,7 @@ export default function CourrierPage() { )}
- {formatDate(new Date(selectedEmail.date))} + {formatEmailDate(selectedEmail.date)}
@@ -1451,7 +1441,7 @@ export default function CourrierPage() { )} - {formatDate(new Date(email.date))} + {formatEmailDate(email.date)}