summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx15
-rw-r--r--app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx6
2 files changed, 17 insertions, 4 deletions
diff --git a/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx b/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx
index 7fb7bd80..c3556fb7 100644
--- a/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx
+++ b/app/[lng]/evcp/(evcp)/docu-list-rule/number-type-configs/page.tsx
@@ -8,6 +8,19 @@ import { getNumberTypeConfigs } from "@/lib/docu-list-rule/number-type-configs/s
import { InformationButton } from "@/components/information/information-button";
import { searchParamsNumberTypeConfigsCache } from "@/lib/docu-list-rule/number-type-configs/validation";
+// Number Type with project info type
+type NumberTypeWithProject = {
+ id: number
+ name: string
+ description: string | null
+ isActive: boolean | null
+ createdAt: Date
+ updatedAt: Date
+ projectId: number
+ projectCode: string | null
+ projectName: string | null
+}
+
interface IndexPageProps {
searchParams: Promise<any>;
}
@@ -28,7 +41,7 @@ export default async function IndexPage(props: IndexPageProps) {
numberTypeId: "",
description: "",
isActive: ""
- }),
+ }) as Promise<{ data: NumberTypeWithProject[]; pageCount: number }>,
// Number Type Configs도 서버 사이드에서 가져오기
parsedSearchParams.numberTypeId > 0 ? getNumberTypeConfigs(parsedSearchParams) : Promise.resolve({ success: true, data: [], pageCount: 0 }),
]);
diff --git a/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx b/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx
index 3ebf93b3..8735e3d6 100644
--- a/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx
+++ b/app/[lng]/evcp/(evcp)/docu-list-rule/page.tsx
@@ -4,8 +4,8 @@ import { redirect } from "next/navigation"
export default async function DocumentNumberingPage({
params,
}: {
- params: { lng: string }
+ params: Promise<{ lng: string }>
}) {
- // Code Group 페이지로 리다이렉트
- redirect(`/${params.lng}/evcp/docu-list-rule/document-class`)
+ const { lng } = await params
+ redirect(`/${lng}/evcp/docu-list-rule/document-class`)
} \ No newline at end of file