courrier clean 2$

This commit is contained in:
alma 2025-04-26 20:16:42 +02:00
parent 104c0d9f94
commit 44f3b3072f

View File

@ -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() {
)}
</div>
<div className="text-sm text-gray-500 whitespace-nowrap">
{formatDate(new Date(selectedEmail.date))}
{formatEmailDate(selectedEmail.date)}
</div>
</div>
@ -1451,7 +1441,7 @@ export default function CourrierPage() {
)}
</div>
<span className="text-xs text-gray-500 whitespace-nowrap">
{formatDate(new Date(email.date))}
{formatEmailDate(email.date)}
</span>
</div>
<h3 className={`text-sm truncate mb-0.5 ${!email.read ? 'text-gray-900' : 'text-gray-600'}`}>