diff --git a/src/pages/home/components/Orders.tsx b/src/pages/home/components/Orders.tsx index 10f31f0..ae39546 100644 --- a/src/pages/home/components/Orders.tsx +++ b/src/pages/home/components/Orders.tsx @@ -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[] = [ diff --git a/src/pages/request/components/ManageAttribute.tsx b/src/pages/request/components/ManageAttribute.tsx index 1579194..9e46b73 100644 --- a/src/pages/request/components/ManageAttribute.tsx +++ b/src/pages/request/components/ManageAttribute.tsx @@ -15,13 +15,10 @@ type Props = { formik: FormikProps } -const SERVICE_LINKS_LABEL = 'لینک سرویس ها' - const ManageAttribute: FC = (props) => { const { attributes, formik } = props - const getAttributeLabel = (name: string) => name === SERVICE_LINKS_LABEL ? name : 'request' const handleChange = (attributeId: string, value: string) => { const attribute = formik.values.attributes @@ -46,7 +43,7 @@ const ManageAttribute: FC = (props) => {
handleChange(item.id, e.target.value)} /> @@ -123,7 +120,7 @@ const ManageAttribute: FC = (props) => { return (