mail page ui correction 2
This commit is contained in:
parent
55baef03b4
commit
2bc53f2db4
@ -34,16 +34,17 @@ interface Account {
|
||||
}
|
||||
|
||||
interface Email {
|
||||
id: string;
|
||||
id: number;
|
||||
accountId: number;
|
||||
from: string;
|
||||
fromName?: string;
|
||||
fromName: string;
|
||||
to: string;
|
||||
subject: string;
|
||||
body: string;
|
||||
date: string;
|
||||
read: boolean;
|
||||
starred: boolean;
|
||||
category?: string;
|
||||
category: string;
|
||||
}
|
||||
|
||||
// Improved MIME Decoder Implementation for Infomaniak
|
||||
@ -654,6 +655,15 @@ export default function MailPage() {
|
||||
setComposeBody(content);
|
||||
};
|
||||
|
||||
const handleAccountAction = (accountId: number, action: 'edit' | 'delete') => {
|
||||
setShowAccountActions(null);
|
||||
if (action === 'delete') {
|
||||
setDeleteType('account');
|
||||
setItemToDelete(accountId);
|
||||
setShowDeleteConfirm(true);
|
||||
}
|
||||
};
|
||||
|
||||
if (error) {
|
||||
return (
|
||||
<div className="flex h-[calc(100vh-theme(spacing.12))] items-center justify-center bg-gray-100 mt-12">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user