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