dark mode v1

This commit is contained in:
hamid zarghami
2025-08-18 15:23:31 +03:30
parent 561bf9d5d5
commit 916b88731c
49 changed files with 655 additions and 371 deletions
+7 -6
View File
@@ -12,6 +12,7 @@ import { useEmailActions } from '@/hooks/useEmailActions';
import { useSharedStore } from '@/shared/store/sharedStore';
import { Checkbox } from '@/components/ui/checkbox';
import React from 'react';
import { getIconColor } from '@/utils/colorUtils';
const List: FC = () => {
const navigate = useNavigate();
@@ -155,7 +156,7 @@ const List: FC = () => {
</div>
<Refresh2
size={18}
color='black'
color={getIconColor('primary')}
className={`cursor-pointer ${isFetching ? 'animate-spin-reverse' : ''}`}
onClick={() => refetch()}
/>
@@ -166,19 +167,19 @@ const List: FC = () => {
<>
<Send
size={18}
color='black'
color={getIconColor('primary')}
onClick={() => handleSendSelected()}
className="cursor-pointer"
/>
<Edit
size={18}
color='black'
color={getIconColor('primary')}
onClick={() => handleEditSelected()}
className="cursor-pointer"
/>
<Trash
size={18}
color='black'
color={getIconColor('primary')}
onClick={() => handleDeleteSelected()}
className="cursor-pointer"
/>
@@ -243,12 +244,12 @@ const List: FC = () => {
const getRowActions = (message: DraftMessage): RowActionItem[] => [
{
label: 'ارسال',
icon: <Send size={16} color="black" />,
icon: <Send size={16} color={getIconColor('primary')} />,
onClick: () => handleSendDraft(message.id),
},
{
label: 'ویرایش',
icon: <Edit size={16} color="black" />,
icon: <Edit size={16} color={getIconColor('primary')} />,
onClick: () => handleEditDraft(message.id),
},
{