huge update

This commit is contained in:
2025-09-10 10:59:14 +02:00
parent be01ee2adb
commit 2f40fc6753
15 changed files with 729 additions and 301 deletions

View File

@@ -5,11 +5,7 @@ import { motion, AnimatePresence } from 'framer-motion';
import {
Mail,
Search,
Filter,
Reply,
Archive,
Trash2,
Clock,
User,
CheckCircle,
Circle,
@@ -54,7 +50,7 @@ export const EmailManager: React.FC = () => {
if (response.ok) {
const data = await response.json();
const formattedMessages = data.contacts.map((contact: any) => ({
const formattedMessages = data.contacts.map((contact: ContactMessage) => ({
id: contact.id.toString(),
name: contact.name,
email: contact.email,
@@ -141,6 +137,7 @@ export const EmailManager: React.FC = () => {
});
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const getPriorityColor = (priority: string) => {
switch (priority) {
case 'high': return 'text-red-400';
@@ -195,7 +192,7 @@ export const EmailManager: React.FC = () => {
{['all', 'unread', 'responded'].map((filterType) => (
<button
key={filterType}
onClick={() => setFilter(filterType as any)}
onClick={() => setFilter(filterType as 'all' | 'unread' | 'responded')}
className={`px-4 py-2 rounded-lg transition-colors ${
filter === filterType
? 'bg-blue-500 text-white'