diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 17aa6fc4..4b0d243a 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -271,15 +271,8 @@ const getFolderIcon = (folder: string) => { } }; -// Initial sidebar items - only INBOX -const initialSidebarItems = [ - { - view: 'INBOX' as MailFolder, - label: 'Inbox', - icon: Inbox, - folder: 'INBOX' - } -]; +// 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 ''; @@ -1241,37 +1234,44 @@ export default function CourrierPage() { } }; - // Fix the sidebar navigation without the folders section and divider + // Update the renderSidebarNav function to handle empty items or display other navigation options const renderSidebarNav = () => ( ); @@ -1634,9 +1634,9 @@ export default function CourrierPage() { {account.folders && account.folders.length > 0 ? ( account.folders.map((folder) => (