courrier multi account restore compose
This commit is contained in:
parent
ca52beaca1
commit
ef981a04ff
@ -236,13 +236,19 @@ export default function EmailPanel({
|
|||||||
// Show compose mode or email preview
|
// Show compose mode or email preview
|
||||||
return (
|
return (
|
||||||
<div className="h-full">
|
<div className="h-full">
|
||||||
|
{/* Remove ComposeEmail overlay/modal logic. Only show preview or a button to trigger compose in parent. */}
|
||||||
{isComposing ? (
|
{isComposing ? (
|
||||||
<ComposeEmail
|
<div className="h-full flex items-center justify-center">
|
||||||
initialEmail={email}
|
<div className="text-center text-muted-foreground">
|
||||||
type={composeType}
|
<p>Compose mode is now handled by the main modal.</p>
|
||||||
onClose={handleComposeClose}
|
<button
|
||||||
onSend={onSendEmail}
|
className="text-primary mt-2 hover:underline"
|
||||||
/>
|
onClick={handleComposeClose}
|
||||||
|
>
|
||||||
|
Close
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="max-w-4xl mx-auto h-full">
|
<div className="max-w-4xl mx-auto h-full">
|
||||||
<EmailPreview
|
<EmailPreview
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user