Skip to content

Commit 08de7d9

Browse files
committed
update announcement
1 parent 6f3b048 commit 08de7d9

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

apps/web/src/common/components/TopBar/components/AnnouncementBar/announcements.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,11 @@ import { AnnouncementItem } from '@web/common/components/TopBar/components/Annou
22

33
// TODO Admin should be able to change the annoucement
44

5-
export function getAnnouncement1(): AnnouncementItem {
6-
return {
7-
id: 'annoucement_1',
8-
label: 'CU Get Reg เป็นเว็บไซต์ที่จัดทำโดยนิสิต ซึ่งได้รับการสนับสนุนเซิฟเวอร์จาก Reg Chula',
9-
severity: 'info',
10-
}
11-
}
12-
135
export function getNotRegChulaWarning(): AnnouncementItem {
146
return {
157
id: 'not_reg_chula',
168
label:
17-
'CU Get Reg เป็นเพียงเครื่องมือที่ช่วยให้การวางแผนลงทะเบียนเรียนง่ายขึ้น แต่ไม่ใช่การลงทะเบียนเรียนจริง คุณสามารถลงทะเบียนเรียนได้ที่ https://www2.reg.chula.ac.th/ เพียงช่องทางเดียวเท่านั้น',
9+
'CU Get Reg เป็นเว็บไซต์ที่จัดทำโดยนิสิต ซึ่งได้รับการสนับสนุนเซิฟเวอร์จาก Reg Chula โดยเป็นเพียงเครื่องมือที่ช่วยให้การวางแผนลงทะเบียนเรียนง่ายขึ้น แต่ไม่ใช่การลงทะเบียนเรียนจริง คุณสามารถลงทะเบียนเรียนได้ที่ https://www2.reg.chula.ac.th/ เพียงช่องทางเดียวเท่านั้น',
1810
severity: 'warning',
1911
}
2012
}
21-
22-
export function term67Issue(): AnnouncementItem {
23-
return {
24-
id: 'term_67_issue',
25-
label:
26-
'ข้อมูลของปีการศึกษา 2567 จะยังมีไม่ครบ เนื่องจากปัญหาของการเชื่อมต่อระหว่าง CU Get Reg กับเว็บไซต์ของทะเบียนจุฬาฯ ขออภัยในความไม่สะดวก',
27-
severity: 'error',
28-
}
29-
}

apps/web/src/common/components/TopBar/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { useRouter } from 'next/router'
22

33
import { AnnouncementBar } from './components/AnnouncementBar'
4-
import {
5-
getAnnouncement1,
6-
getNotRegChulaWarning,
7-
term67Issue,
8-
} from './components/AnnouncementBar/announcements'
4+
import { getNotRegChulaWarning } from './components/AnnouncementBar/announcements'
95
import { ConfigBar } from './components/ConfigBar'
106
import { ConfigBarLayout } from './components/ConfigBar/styled'
117
import { NavBar } from './components/NavBar'
@@ -15,9 +11,7 @@ import { StickyContainer, StickySpace, TopBarLayout } from './styled'
1511
export function AnnouncementSection() {
1612
return (
1713
<>
18-
<AnnouncementBar announcement={getAnnouncement1()} />
1914
<AnnouncementBar announcement={getNotRegChulaWarning()} />
20-
<AnnouncementBar announcement={term67Issue()} />
2115
</>
2216
)
2317
}

0 commit comments

Comments
 (0)