diff --git a/src/components/setting/NotificationSection.tsx b/src/components/setting/NotificationSection.tsx index bd0bc069..8f044dee 100644 --- a/src/components/setting/NotificationSection.tsx +++ b/src/components/setting/NotificationSection.tsx @@ -13,6 +13,7 @@ import SlackIcon from "@/assets/logo/social-logo/plain/slack.svg?react"; type TNotificationSectionProps = { email: string; + isAdmin: boolean; masterEnabled: boolean; onMasterEnabledChange: (value: boolean) => void; //channel @@ -48,6 +49,7 @@ type TNotificationSectionProps = { export default function NotificationSection({ email, + isAdmin, masterEnabled, onMasterEnabledChange, browserPush, @@ -158,140 +160,145 @@ export default function NotificationSection({ /> - -
슬랙 연동하기
-- {slackConnected - ? "연동됨 • 알림 on/off는 저장 시 반영" - : "Webhook URL로 연동"} -
+ {isAdmin && ( +슬랙 연동하기
++ {slackConnected + ? "연동됨 • 알림 on/off는 저장 시 반영" + : "Webhook URL로 연동"} +
+디스코드 연동하기
-- {discordConnected - ? "연동됨 • 알림 on/off는 저장 시 반영" - : "Webhook URL로 연동"} -
+ {isAdmin && ( ++ 디스코드 연동하기 +
++ {discordConnected + ? "연동됨 • 알림 on/off는 저장 시 반영" + : "Webhook URL로 연동"} +
+