From 8137cd3701b648b072024e04cbef5cda0c7b149c Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 27 Apr 2025 18:35:57 +0200 Subject: [PATCH] courrier multi account --- app/courrier/page.tsx | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/app/courrier/page.tsx b/app/courrier/page.tsx index 2f0bd350..7f8ab11d 100644 --- a/app/courrier/page.tsx +++ b/app/courrier/page.tsx @@ -617,7 +617,7 @@ export default function CourrierPage() {
{/* Sidebar */}
+ ${mobileSidebarOpen ? 'fixed inset-y-0 left-0 z-40' : ''} md:block`}> {/* Courrier Title */}
@@ -679,6 +679,13 @@ export default function CourrierPage() {
+ + {/* Debug info */} +
+ Accounts: {accounts.length}, + Selected: {selectedAccount?.id || 'none'}, + ShowFolders: {String(showFolders)} +
{/* Form for adding a new account */} {showAddAccountForm && ( @@ -942,6 +949,13 @@ export default function CourrierPage() {
+ {/* Debug info */} +
+ Selected: {selectedAccount.id || 'none'}
+ Has Folders: {String(!!selectedAccount.folders)}
+ Folder Count: {selectedAccount.folders.length || 0} +
+ {selectedAccount.folders.map((folder) => (