blogs crud

This commit is contained in:
hamid zarghami
2025-09-25 12:18:04 +03:30
parent edf6bcfc3d
commit 475a881f2f
17 changed files with 807 additions and 2 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ const STATUS_CONFIG = {
process_by_sellers: { label: 'در حال پردازش توسط فروشنده', color: 'bg-blue-100 text-blue-800' },
cancelled_system: { label: 'کنسل شده توسط سیستم', color: 'bg-red-100 text-red-800' },
Delivered: { label: 'تحویل داده شده', color: 'bg-green-100 text-green-800' },
} as const
}
const getStatusLabel = (status: string): string => STATUS_CONFIG[status as keyof typeof STATUS_CONFIG]?.label || status
@@ -92,7 +92,7 @@ const Native: FC = () => {
<Td text={order.createdAt || 'نامشخص'} />
<Td text="">
<div className="flex items-center gap-2">
<Link to={`${Pages.orders.detail}${order._id}?status=${status}`}>
<Link to={`${Pages.orders.detailUser}${order._id}`}>
<Eye color='#8C90A3' size={16} className="cursor-pointer hover:text-blue-500 transition-colors" />
</Link>
</div>