From 6d97a4ee341a1c530be244ec304d2b910770507d Mon Sep 17 00:00:00 2001 From: alma Date: Wed, 16 Apr 2025 11:58:30 +0200 Subject: [PATCH] mail page ui correction maj compose 2 --- app/mail/page.tsx | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/app/mail/page.tsx b/app/mail/page.tsx index 6148c87..8b71bf8 100644 --- a/app/mail/page.tsx +++ b/app/mail/page.tsx @@ -404,6 +404,11 @@ const decodeEmailContent = (content: string, charset: string = 'utf-8') => { return convertCharset(content, charset); }; +// Add this with your other functions +const getSelectedEmail = () => { + return emails.find(email => email.id === selectedEmail?.id); +}; + export default function MailPage() { const router = useRouter(); const [loading, setLoading] = useState(true); @@ -1051,7 +1056,6 @@ export default function MailPage() { {showCompose && (
- {/* Modal Header */}

{composeSubject.startsWith('Re:') ? 'Reply' : @@ -1075,10 +1079,8 @@ export default function MailPage() {

- {/* Modal Body */}
- {/* Recipients */}
- {/* CC/BCC Controls */}