courrier clean 2$
This commit is contained in:
parent
44f3b3072f
commit
0bb4fac9f9
@ -58,7 +58,6 @@ import {
|
|||||||
formatForwardedEmail,
|
formatForwardedEmail,
|
||||||
formatReplyEmail,
|
formatReplyEmail,
|
||||||
formatEmailForReplyOrForward,
|
formatEmailForReplyOrForward,
|
||||||
formatEmailDate, // Add this import
|
|
||||||
EmailMessage as FormatterEmailMessage,
|
EmailMessage as FormatterEmailMessage,
|
||||||
cleanHtmlContent
|
cleanHtmlContent
|
||||||
} from '@/lib/utils/email-formatter';
|
} from '@/lib/utils/email-formatter';
|
||||||
@ -340,6 +339,17 @@ const getFolderIcon = (folder: string) => {
|
|||||||
// Update the initialSidebarItems to be empty since we're using folders under Accounts now
|
// Update the initialSidebarItems to be empty since we're using folders under Accounts now
|
||||||
const initialSidebarItems: any[] = []; // Remove the default Inbox item
|
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.
|
* @deprecated This function is deprecated and will be removed in future versions.
|
||||||
* Use the ReplyContent component directly instead.
|
* Use the ReplyContent component directly instead.
|
||||||
@ -1392,7 +1402,7 @@ export default function CourrierPage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-sm text-gray-500 whitespace-nowrap">
|
<div className="text-sm text-gray-500 whitespace-nowrap">
|
||||||
{formatEmailDate(selectedEmail.date)}
|
{formatDate(new Date(selectedEmail.date))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1441,7 +1451,7 @@ export default function CourrierPage() {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<span className="text-xs text-gray-500 whitespace-nowrap">
|
<span className="text-xs text-gray-500 whitespace-nowrap">
|
||||||
{formatEmailDate(email.date)}
|
{formatDate(new Date(email.date))}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<h3 className={`text-sm truncate mb-0.5 ${!email.read ? 'text-gray-900' : 'text-gray-600'}`}>
|
<h3 className={`text-sm truncate mb-0.5 ${!email.read ? 'text-gray-900' : 'text-gray-600'}`}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user