Skip to content

Commit 71f088b

Browse files
authored
Merge pull request #625 from solid-connection/feat/web-chungang-home-university-chip
✨ 메인페이지 학교 목록에 중앙대 칩 추가
2 parents 17f4777 + dea0391 commit 71f088b

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

6.73 KB
Loading

apps/web/src/constants/university.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const REGIONS_KO = ["유럽권", "미주권", "아시아권", "중국권"
1818
export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity> = {
1919
inha: HomeUniversity.INHA,
2020
kyunghee: HomeUniversity.KYUNGHEE,
21+
chungang: HomeUniversity.CHUNGANG,
2122
};
2223

2324
/**
@@ -26,6 +27,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity
2627
export const HOME_UNIVERSITY_TO_SLUG_MAP: Record<HomeUniversity, HomeUniversitySlug> = {
2728
[HomeUniversity.INHA]: "inha",
2829
[HomeUniversity.KYUNGHEE]: "kyunghee",
30+
[HomeUniversity.CHUNGANG]: "chungang",
2931
};
3032

3133
/**
@@ -65,6 +67,18 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [
6567
description: "경희대학교 교환학생 프로그램",
6668
color: "#8C1515",
6769
},
70+
{
71+
homeUniversityId: 3,
72+
name: HomeUniversity.CHUNGANG,
73+
slug: "chungang",
74+
shortName: "중앙대",
75+
// TODO: 중앙대 실제 지원 가능 대학 수 확인 필요.
76+
// 이 목록에 없을 때 적용되던 DEFAULT_MAX_CHOICE_COUNT 와 같은 값이라 현재 동작은 그대로다.
77+
maxChoiceCount: DEFAULT_MAX_CHOICE_COUNT,
78+
logoUrl: "/images/univs/chungang.png",
79+
description: "중앙대학교 교환학생 프로그램",
80+
color: "#006DB4",
81+
},
6882
];
6983

7084
/**
@@ -114,7 +128,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H
114128
/**
115129
* 유효한 홈 대학교 슬러그 목록
116130
*/
117-
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"];
131+
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee", "chungang"];
118132

119133
export const COUNTRIES_KO = [
120134
// 2024-2 기준

apps/web/src/types/university.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ export type RegionKo = "유럽권" | "미주권" | "아시아권" | "중국권";
33
export enum HomeUniversityName {
44
INHA = "인하대학교",
55
KYUNGHEE = "경희대학교",
6+
CHUNGANG = "중앙대학교",
67
}
78

89
export { HomeUniversityName as HomeUniversity };
910

10-
export type HomeUniversitySlug = "inha" | "kyunghee";
11+
export type HomeUniversitySlug = "inha" | "kyunghee" | "chungang";
1112

1213
export interface RegionOption {
1314
value: string;

0 commit comments

Comments
 (0)