From 76d40bb4e362df0ce5a51097adef1f738e33087b Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 27 Apr 2025 22:51:45 +0200 Subject: [PATCH] courrier multi account restore compose --- .DS_Store | Bin 10244 -> 10244 bytes app/.DS_Store | Bin 6148 -> 10244 bytes components/email/ComposeEmail.tsx | 346 ++++++++++++++++-------------- 3 files changed, 182 insertions(+), 164 deletions(-) diff --git a/.DS_Store b/.DS_Store index bafcc976482b1c83319306d25be226cabc0122d3..f0a55f973d84cb5698e28561134f6f40b28cd7f6 100644 GIT binary patch delta 1629 zcmah}L2nX47=2(1t)(rXfgWr^qS1q}u|}I-8>>kVT2kxTEL)1$g{3T58>4&a%}Wz* z9`xkd82*=u-t>a+n^Kq=s5aT1+39=VyzhPA$7%Vre71A#CV&`_M&MQapu(?oe{JP! zvY(urnY$zZy#g04w6^^*f~T8&oPqiS`l<9n@`i=@rXzZT+^57wv2g#vdhbi#iVJ;y#6aRPYi<=#tyU37H|ke2e$d;^nc0$0%br;_`?& z>~Y;ps&VUW-0}aH18FkV@sOP%NN{;aB0{vxgi-^ zbQ*5ZQ^W@>PL&j*Sn{%dD(M z^VsFYZgOOva-BA#;-wxxNfpwsb>1^EA~E)(fld(J;oMHE60M31aF$S)fqk}rou!s3 zG@E4NLS>aMZ&5^9tf`};dei%%IXA16wkG=t;+u|~XGShPXj0&?kxZvm2M!tEkAB7a j$-gxLe{{<%m4smD;mLa(l^WHZ)S(yH4&-(@nD-MB%%NZ z+x1UyTG9A-K9*X=d~+98!Jnw0m@-P~*+H_T_Fs4co`5Id33vjYz=uEp?`&>COIv^T z1UvyxU`~MRLx_WI$Jm*+QaW&wB>-#{UrWO^)&b%Z8rv~;rmeW5PrZ6j##NamhSKi% zJ!Cm-$Jm*++MSekCuQ!e%nC)x-QgFCoK#0!fA$1Cfn@@`c5l)X8c{^YSJ&^^aX-oW z_?0KrcQ`iRO1pzy1FBPxPT-N!fO-dsrTuH6{pk?b4bjGwU~izH$X2V*7wR7#;<^fT zLg#L;>W_u)4v%>ax*^3*Z*LZ=#|OA>ifTx?87r*qQ8`(76a}vN$#RS{f$iH`q41}s zaGZ(u7^(!^#*{c(reL(w$G8rlI+f8dg{5%_2czE`Lf@F{!HjadccEd_+nZ3|fI0)U zq3phJTnZXFKFr4WMALWq^e3aCiTmIEVG@sucKcsdS*zCSji3>SN{++gXYot z?Td?@_PveptDW7;jqu`|-R+I=>-Ns&Wi$Bfi>+^eJUUCx)9f|Ij;73ufNtu~^D}44 zN**t}d75M?N1S~*BD_~sAS#^s4ll_J!|PEr*N+jq9GScn6V49xsm_k+{Z;yF!d7#; z!olIX2AVmY+u28$4<((g78sH+(3iW(-7f2AXT{}FU8=n{;h zFV$g0n;?QQ*}V%9bKb;Z19G)%727brp^iuq?TSPe>5L?h8jk$^TdfEXGi6#vW`rO<%#hYv+vLK z!qQ6D{^SXG0-k^;;0XwUHO(Px!9INV|NlKLPrwtn#spOLLHEHv9Lir IBV7Og4{f!(DgXcg delta 135 zcmZn(XfcprU|?W$DortDU=RQ@Ie-{MGjUEV6q~50D9Qqo2a6RkWHO{O6eX1x7i=tC z&dA6zIZ62UWLdEn8%rcu7PE732r>iJ0)YTGkZ=W=v9a(w^JIP%N022TQ$U6>FhOhq Li*1hQnZpbKAt)8f diff --git a/components/email/ComposeEmail.tsx b/components/email/ComposeEmail.tsx index 242ef1ca..1c77745c 100644 --- a/components/email/ComposeEmail.tsx +++ b/components/email/ComposeEmail.tsx @@ -360,174 +360,192 @@ export default function ComposeEmail(props: ComposeEmailAllProps) { }, []); return ( -
-
-
-

- {type === 'new' ? 'New Message' : - type === 'reply' ? 'Reply' : - type === 'reply-all' ? 'Reply All' : - 'Forward'} -

- -
-
- -
- {/* Email header fields */} -
-
- To: - setTo(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="recipient@example.com" - /> -
- - {showCc && ( -
- Cc: - setCc(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="cc@example.com" - /> -
- )} - - {showBcc && ( -
- Bcc: - setBcc(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="bcc@example.com" - /> -
- )} - - {/* CC/BCC controls */} -
- - - -
- -
- Subject: - setSubject(e.target.value)} - className="flex-1 border-0 shadow-none h-8 focus-visible:ring-0" - placeholder="Subject" - /> -
-
- - {/* Email body editor */} -
- - {/* Attachments list */} - {attachments.length > 0 && ( -
-
Attachments:
-
- {attachments.map((attachment, index) => ( -
- - {attachment.name} - -
- ))} -
-
- )} -
- -
-
- +
+
+ {/* Modal Header */} +
+

+ {type === 'reply' ? 'Reply' : type === 'forward' ? 'Forward' : type === 'reply-all' ? 'Reply All' : 'New Message'} +

- - + + {/* Modal Body */} +
+
+ {/* To Field */} +
+ + setTo(e.target.value)} + placeholder="recipient@example.com" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ + {/* CC/BCC Toggle Buttons */} +
+ + +
+ + {/* CC Field */} + {showCc && ( +
+ + setCc(e.target.value)} + placeholder="cc@example.com" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ )} + + {/* BCC Field */} + {showBcc && ( +
+ + setBcc(e.target.value)} + placeholder="bcc@example.com" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ )} + + {/* Subject Field */} +
+ + setSubject(e.target.value)} + placeholder="Enter subject" + className="w-full mt-1 bg-white border-gray-300 text-gray-900" + /> +
+ + {/* Message Body */} +
+ +
+ +
+
+ + {/* Attachments */} + {attachments.length > 0 && ( +
+

Attachments

+
+ {attachments.map((file, index) => ( +
+ {file.name} + +
+ ))} +
+
+ )} +
+
+ + {/* Modal Footer */} +
+
+ {/* File Input for Attachments */} + { + if (e.target.files && e.target.files.length > 0) { + handleAttachmentAdd(e.target.files); + } + }} + /> + + {sending && Preparing attachment...} +
+
+ + +
+
);