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