Skip to content

Commit 4b44c8b

Browse files
authored
Merge pull request #251 from manNomi/fix/applicant
hot fix : applicant 버그 수정했습니다
2 parents f5c458e + 46ca832 commit 4b44c8b

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

src/app/university/application/apply/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import { Metadata } from "next";
2-
3-
import ApplyPageContent from "./ApplyPageContent";
2+
import dynamic from "next/dynamic";
43

54
export const metadata: Metadata = {
65
title: "지원하기",
76
};
7+
const ApplyPageContentDynamic = dynamic(() => import("./ApplyPageContent"), {
8+
ssr: false,
9+
loading: () => null,
10+
});
811

912
const ApplyPage = () => {
1013
return (
1114
<>
12-
<ApplyPageContent />
15+
<ApplyPageContentDynamic />
1316
</>
1417
);
1518
};

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ const GpaSubmitForm = () => {
6969
label: "성적 증명서",
7070
status: "제출 완료",
7171
statusColor: "text-blue-600",
72-
details: submittedData.file[0].name,
72+
details: submittedData.file[0]?.name,
7373
},
7474
];
7575

7676
return (
7777
<SubmitResult
7878
title="학점 입력 완료"
79-
description="지원은 총 3번만 가능하며, 제출 완료 후 성적을 변경 하실 수 없습니다."
79+
description="성적 승인은 최대 3일까지 걸릴 수 있습니다."
8080
buttonText="어학성적 입력하기"
8181
onClick={() => router.push("/university/score/submit/language-test")}
8282
handleClose={() => setShowResult(false)}
@@ -164,9 +164,8 @@ const GpaSubmitForm = () => {
164164
<button
165165
className={clsx(
166166
"mb-10 w-full rounded-lg py-4 font-semibold text-white",
167-
isValid ? "cursor-not-allowed bg-primary" : "bg-k-100",
167+
isValid ? "bg-primary" : "cursor-not-allowed bg-k-100",
168168
)}
169-
type="submit"
170169
disabled={!isValid}
171170
>
172171
다음

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ const LanguageTestSubmitForm = () => {
7575
{
7676
label: "어학증명서",
7777
status: "제출 완료",
78-
details: submittedData.file[0].name,
78+
details: submittedData.file[0]?.name,
7979
},
8080
];
8181

8282
return (
8383
<SubmitResult
8484
title="어학 성적 제출 완료"
85-
description="지원은 총 3번만 가능하며, 제출 완료 후 성적을 변경 하실 수 없습니다."
85+
description="성적 승인은 최대 3일까지 걸릴 수 있습니다."
8686
buttonText="학점입력하기"
8787
onClick={() => router.push("/university/score/submit/gpa")}
8888
handleClose={() => setShowResult(false)}
@@ -169,9 +169,8 @@ const LanguageTestSubmitForm = () => {
169169
<button
170170
className={clsx(
171171
"mb-10 w-full rounded-lg py-4 font-semibold text-white",
172-
isValid ? "cursor-not-allowed bg-primary" : "bg-k-100",
172+
isValid ? "bg-primary" : "cursor-not-allowed bg-k-100",
173173
)}
174-
type="submit"
175174
disabled={!isValid}
176175
>
177176
다음

0 commit comments

Comments
 (0)