huge update
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user