From 2fb4fcd0693caba571605788359a7f63315ad93c Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 29 Apr 2025 09:13:52 +0200 Subject: [PATCH] courrier multi account restore compose --- components/email/EmailSidebar.tsx | 33 +++++++++++++++++-------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/components/email/EmailSidebar.tsx b/components/email/EmailSidebar.tsx index 45913c35..6156162d 100644 --- a/components/email/EmailSidebar.tsx +++ b/components/email/EmailSidebar.tsx @@ -80,7 +80,7 @@ export default function EmailSidebar({ }; const handleAccountClick = (accountId: string) => { - setExpandedAccount(expandedAccount === accountId ? null : accountId); + setExpandedAccount(accountId); }; return ( @@ -99,18 +99,26 @@ export default function EmailSidebar({ {/* Accounts and folders navigation */}
- {/* Accounts header with toggle */} + {/* Accounts header with toggle and add button */}
- Accounts +
+ + Accounts +
@@ -131,14 +139,9 @@ export default function EmailSidebar({ {account.email}
- {expandedAccount === account.id ? ( - - ) : ( - - )} - {/* Account folders - shown when account is expanded */} + {/* Account folders - shown when account is selected */} {expandedAccount === account.id && (
{getStandardFolders(account.folders).map((folder) => (