order detail + types + components

This commit is contained in:
hamid zarghami
2026-01-31 11:00:24 +03:30
parent 7df6d04d5f
commit b730f86b1e
11 changed files with 723 additions and 6 deletions
+8 -2
View File
@@ -4,6 +4,8 @@ import Table from '@/components/Table'
import { Edit2, Eye, Receipt21, Setting2 } from 'iconsax-react'
import { useGetOrders } from './hooks/useOrderData'
import moment from 'moment-jalaali'
import { Link } from 'react-router-dom'
import { Paths } from '@/config/Paths'
const OrdersList: FC = () => {
@@ -94,10 +96,14 @@ const OrdersList: FC = () => {
{
key: 'actions',
title: '',
render: () => {
render: (item) => {
return (
<div className='flex gap-2 items-center'>
<Eye size={20} color='#8C90A3' />
<Link
to={Paths.order.details + item.id}
>
<Eye size={20} color='#8C90A3' />
</Link>
<Edit2 size={20} color='#0037FF' />
<Receipt21 size={20} color='#FF8000' />
<Setting2 size={20} color='#00B89F' />