diff --git a/.env b/.env index 52ebffc..d1840ce 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ -VITE_API_BASE_URL = 'http://10.24.161.1:4000' +VITE_API_BASE_URL = 'http://10.86.60.88:4000' VITE_TOKEN_NAME = 'negareh_at' VITE_REFRESH_TOKEN_NAME = 'negareh_art' \ No newline at end of file diff --git a/src/config/Paths.tsx b/src/config/Paths.tsx index e08e873..67827d5 100644 --- a/src/config/Paths.tsx +++ b/src/config/Paths.tsx @@ -78,5 +78,6 @@ export const Paths = { list: '/print/list', create: '/print/create', update: '/print/update/', + form: '/print/form/' } } \ No newline at end of file diff --git a/src/pages/order/OrderDetail.tsx b/src/pages/order/OrderDetail.tsx index 2c89d25..1f83ca7 100644 --- a/src/pages/order/OrderDetail.tsx +++ b/src/pages/order/OrderDetail.tsx @@ -33,7 +33,7 @@ const OrderDetail: FC = () => { { data?.data?.items?.map((item) => { return ( - + ) }) } diff --git a/src/pages/order/components/OrderItem.tsx b/src/pages/order/components/OrderItem.tsx index f6e7715..5079e5f 100644 --- a/src/pages/order/components/OrderItem.tsx +++ b/src/pages/order/components/OrderItem.tsx @@ -1,6 +1,9 @@ import { type FC } from 'react' import type { OrderItemType } from '../types/Types' import { useGetEntityField } from '@/pages/formBuilder/hooks/useFormBuilderData' +import Button from '@/components/Button' +import { Link, useParams } from 'react-router-dom' +import { Paths } from '@/config/Paths' type Props = { item: OrderItemType, @@ -9,11 +12,21 @@ type Props = { const OrderItem: FC = ({ item, estimatedDays }) => { + const { id } = useParams() const { data: fields } = useGetEntityField(item.product?.id) return ( -
+
+
+
#{item.id}
+ +
{/* Product Image */}