order detail + types + components
This commit is contained in:
@@ -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' />
|
||||
|
||||
Reference in New Issue
Block a user