Skip to content

Commit 67d3dc0

Browse files
authored
Merge pull request #622 from solid-connection/feat/add-chungang-home-university
✨ 중앙대학교 홈 대학 추가
2 parents 46f86c0 + e3155d9 commit 67d3dc0

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

6.73 KB
Loading

‎apps/university-web/src/constants/university.ts‎

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

2223
/**
@@ -25,6 +26,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity
2526
export const HOME_UNIVERSITY_TO_SLUG_MAP: Record<HomeUniversity, HomeUniversitySlug> = {
2627
[HomeUniversity.INHA]: "inha",
2728
[HomeUniversity.KYUNGHEE]: "kyunghee",
29+
[HomeUniversity.CHUNGANG]: "chungang",
2830
};
2931

3032
/**
@@ -59,6 +61,15 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [
5961
description: "경희대학교 교환학생 프로그램",
6062
color: "#8C1515",
6163
},
64+
{
65+
homeUniversityId: 3,
66+
name: HomeUniversity.CHUNGANG,
67+
slug: "chungang",
68+
shortName: "중앙대",
69+
logoUrl: "/images/univs/chungang.png",
70+
description: "중앙대학교 교환학생 프로그램",
71+
color: "#006DB4",
72+
},
6273
];
6374

6475
/**
@@ -104,7 +115,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H
104115
/**
105116
* 유효한 홈 대학교 슬러그 목록
106117
*/
107-
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"];
118+
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee", "chungang"];
108119

109120
export const COUNTRIES_KO = [
110121
// 2024-2 기준

‎apps/university-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)