Skip to content

Commit e472d95

Browse files
authored
Merge pull request #249 from manNomi/refactor/applicant
fix : 파일 요소로 인한 빌드 버그로 수정했습니다
2 parents 3d2208c + 0f9fa4f commit e472d95

4 files changed

Lines changed: 25 additions & 7 deletions

File tree

src/app/university/score/submit/gpa/GpaSubmitForm.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22

33
import Link from "next/link";
44
import { useRouter } from "next/navigation";
5-
import { useState } from "react";
5+
import { Suspense, useState } from "react";
66
import { Controller, SubmitHandler, useForm } from "react-hook-form";
77

88
import clsx from "clsx";
99

1010
import SubmitLinkTab from "@/components/score/SubmitLinkTab";
1111
import SubmitResult from "@/components/score/SubmitResult";
1212
import { InfoRowProps } from "@/components/score/SubmitResult";
13+
import CloudSpinnerPage from "@/components/ui/CloudSpinnerPage";
1314

1415
// CustomDropdown 경로 확인 필요
1516
import { GpaFormData, gpaSchema } from "./_lib/schema";
@@ -176,4 +177,11 @@ const GpaSubmitForm = () => {
176177
);
177178
};
178179

179-
export default GpaSubmitForm;
180+
const GpaSubmitPage = () => {
181+
return (
182+
<Suspense fallback={<CloudSpinnerPage />}>
183+
<GpaSubmitForm />
184+
</Suspense>
185+
);
186+
};
187+
export default GpaSubmitPage;

src/app/university/score/submit/gpa/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Metadata } from "next";
2+
import dynamic from "next/dynamic";
23

34
import TopDetailNavigation from "@/components/layout/TopDetailNavigation";
45

5-
import GpaSubmitForm from "./GpaSubmitForm";
6+
const ClientGpaForm = dynamic(() => import("./GpaSubmitForm"), { ssr: false });
67

78
export const metadata: Metadata = {
89
title: "성적 입력하기",
@@ -12,7 +13,7 @@ const SubmitGpaPage = () => {
1213
return (
1314
<>
1415
<TopDetailNavigation title="성적 입력하기" />
15-
<GpaSubmitForm />
16+
<ClientGpaForm />
1617
</>
1718
);
1819
};

src/app/university/score/submit/language-test/LanguageTestSubmitForm.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import Link from "next/link";
44
import { useRouter } from "next/navigation";
5-
import { useState } from "react";
5+
import { Suspense, useState } from "react";
66
import { Controller, SubmitHandler, useForm } from "react-hook-form";
77

88
import clsx from "clsx";
@@ -11,6 +11,7 @@ import SubmitLinkTab from "@/components/score/SubmitLinkTab";
1111
import SubmitResult from "@/components/score/SubmitResult";
1212
// CustomDropdown 경로 확인 필요
1313
import { InfoRowProps } from "@/components/score/SubmitResult";
14+
import CloudSpinnerPage from "@/components/ui/CloudSpinnerPage";
1415

1516
import { LanguageTestFormData, languageTestSchema } from "./_lib/schema";
1617

@@ -181,4 +182,11 @@ const LanguageTestSubmitForm = () => {
181182
);
182183
};
183184

184-
export default LanguageTestSubmitForm;
185+
const LanguageTestSubmitPage = () => {
186+
return (
187+
<Suspense fallback={<CloudSpinnerPage />}>
188+
<LanguageTestSubmitForm />
189+
</Suspense>
190+
);
191+
};
192+
export default LanguageTestSubmitPage;

src/app/university/score/submit/language-test/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { Metadata } from "next";
2+
import dynamic from "next/dynamic";
23

34
import TopDetailNavigation from "@/components/layout/TopDetailNavigation";
45

5-
import LanguageTestSubmitForm from "./LanguageTestSubmitForm";
6+
const LanguageTestSubmitForm = dynamic(() => import("./LanguageTestSubmitForm"), { ssr: false });
67

78
export const metadata: Metadata = {
89
title: "성적 입력하기",

0 commit comments

Comments
 (0)