From 9f41768e54bf86f0eeb3ad81bd234666fee2a686 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Mon, 17 Nov 2025 09:22:49 +0700 Subject: [PATCH] refactor(FE-208): rename PurchaseRequisitions to PurchaseRequest and update related API references --- src/app/purchase/add/page.tsx | 2 +- src/app/purchase/detail/edit/page.tsx | 2 +- src/app/purchase/detail/page.tsx | 2 +- ...RequisitionsForm.schema.ts => PurchaseRequestForm.schema.ts} | 0 .../{PurchaseRequisitionsForm.tsx => PurchaseRequestForm.tsx} | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename src/components/pages/purchase/form/request/{PurchaseRequisitionsForm.schema.ts => PurchaseRequestForm.schema.ts} (100%) rename src/components/pages/purchase/form/request/{PurchaseRequisitionsForm.tsx => PurchaseRequestForm.tsx} (99%) diff --git a/src/app/purchase/add/page.tsx b/src/app/purchase/add/page.tsx index d09d5ce0..7e1cb9e7 100644 --- a/src/app/purchase/add/page.tsx +++ b/src/app/purchase/add/page.tsx @@ -1,4 +1,4 @@ -import PurchaseRequestForm from '@/components/pages/purchase/form/request/PurchaseRequisitionsForm'; +import PurchaseRequestForm from '@/components/pages/purchase/form/request/PurchaseRequestForm'; const AddPurchaseRequest = () => { return ( diff --git a/src/app/purchase/detail/edit/page.tsx b/src/app/purchase/detail/edit/page.tsx index 5f0dacd4..a4d59ae2 100644 --- a/src/app/purchase/detail/edit/page.tsx +++ b/src/app/purchase/detail/edit/page.tsx @@ -2,7 +2,7 @@ import { useRouter, useSearchParams } from 'next/navigation'; import useSWR from 'swr'; -import PurchaseRequestForm from '@/components/pages/purchase/form/request/PurchaseRequisitionsForm'; +import PurchaseRequestForm from '@/components/pages/purchase/form/request/PurchaseRequestForm'; import { PurchaseRequestApi } from '@/services/api/purchase'; import { isResponseSuccess, isResponseError } from '@/lib/api-helper'; diff --git a/src/app/purchase/detail/page.tsx b/src/app/purchase/detail/page.tsx index 8ea80739..5a497f14 100644 --- a/src/app/purchase/detail/page.tsx +++ b/src/app/purchase/detail/page.tsx @@ -2,7 +2,7 @@ import { useRouter, useSearchParams } from 'next/navigation'; import useSWR from 'swr'; -import PurchaseRequestForm from '@/components/pages/purchase/form/request/PurchaseRequisitionsForm'; +import PurchaseRequestForm from '@/components/pages/purchase/form/request/PurchaseRequestForm'; import { PurchaseRequestApi } from '@/services/api/purchase'; import { isResponseSuccess, isResponseError } from '@/lib/api-helper'; diff --git a/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.schema.ts b/src/components/pages/purchase/form/request/PurchaseRequestForm.schema.ts similarity index 100% rename from src/components/pages/purchase/form/request/PurchaseRequisitionsForm.schema.ts rename to src/components/pages/purchase/form/request/PurchaseRequestForm.schema.ts diff --git a/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx b/src/components/pages/purchase/form/request/PurchaseRequestForm.tsx similarity index 99% rename from src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx rename to src/components/pages/purchase/form/request/PurchaseRequestForm.tsx index 5d52bd20..4ae15afb 100644 --- a/src/components/pages/purchase/form/request/PurchaseRequisitionsForm.tsx +++ b/src/components/pages/purchase/form/request/PurchaseRequestForm.tsx @@ -22,7 +22,7 @@ import { PurchaseRequestFormValues, getPurchaseRequestFormInitialValues, UpdatePurchaseRequestFormSchema, -} from './PurchaseRequisitionsForm.schema'; +} from './PurchaseRequestForm.schema'; import { SupplierApi, AreaApi,