From cf2bf523570cff13a5473454e97ce6d162d4e8c7 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 27 Apr 2025 21:55:03 +0200 Subject: [PATCH] courrier multi account restore compose --- components/email/ComposeEmail.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/components/email/ComposeEmail.tsx b/components/email/ComposeEmail.tsx index 3e12cf27..dbc4bdd0 100644 --- a/components/email/ComposeEmail.tsx +++ b/components/email/ComposeEmail.tsx @@ -1,7 +1,7 @@ 'use client'; import { useState, useRef, useEffect } from 'react'; -import { formatEmailForReplyOrForward, EmailMessage, EmailAddress } from '@/lib/utils/email-formatter'; +import { formatEmailForReplyOrForward, EmailMessage, EmailAddress } from '@/lib/services/email-service'; import { X, Paperclip, ChevronDown, ChevronUp, SendHorizontal, Loader2 } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Input } from '@/components/ui/input'; @@ -162,13 +162,13 @@ export default function ComposeEmail({ // Format the forwarded message with a well-structured header const fromString = Array.isArray(initialEmail.from) && initialEmail.from.length > 0 - ? initialEmail.from.map((addr: {name?: string, address: string}) => addr.name + ? initialEmail.from.map(addr => addr.name ? `${addr.name} <${addr.address}>` : addr.address).join(', ') : 'Unknown'; const toString = Array.isArray(initialEmail.to) && initialEmail.to.length > 0 - ? initialEmail.to.map((addr: {name?: string, address: string}) => addr.name + ? initialEmail.to.map(addr => addr.name ? `${addr.name} <${addr.address}>` : addr.address).join(', ') : ''; @@ -522,7 +522,6 @@ export default function ComposeEmail({ variant="outline" size="sm" onClick={handleAttachmentClick} - className="bg-white hover:bg-gray-100 border-gray-300" > Attach @@ -533,7 +532,6 @@ export default function ComposeEmail({ size="sm" onClick={handleSend} disabled={sending} - className="bg-blue-600 text-white hover:bg-blue-700" > {sending ? ( <>