This commit is contained in:
hamid zarghami
2026-02-23 14:31:50 +03:30
parent 3c92e55927
commit 3a9c241d45
3 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { type FC } from 'react'
import { type ColumnType } from '@/components/types/TableTypes'
import { type Order } from './types/OrderTypes'
import { useGetMyOrders } from '@/pages/order/hooks/useOrderData'
import { TabMyRequestsEnum } from '@/pages/order/enum/OrderEnum'
import { TabMyOrdersEnum } from '@/pages/order/enum/OrderEnum'
import { orderStatusLabels } from '@/pages/order/constants/statusLabels'
import moment from 'moment-jalaali'
import {
@@ -29,7 +29,7 @@ const mapOrderToRow = (order: OrderType): Order => ({
})
const Orders: FC = () => {
const { data, isLoading } = useGetMyOrders(1, TabMyRequestsEnum.IN_PROGRESS)
const { data, isLoading } = useGetMyOrders(1, TabMyOrdersEnum.IN_PROGRESS)
const orders: Order[] = (data?.data ?? []).map(mapOrderToRow)
const columns: ColumnType<Order>[] = [