diff --git a/src/components/myPage/ApproveBox.tsx b/src/components/myPage/ApproveBox.tsx index c085ec6..b96a60a 100644 --- a/src/components/myPage/ApproveBox.tsx +++ b/src/components/myPage/ApproveBox.tsx @@ -25,18 +25,33 @@ export const ApproveBox = ({ }) => { const { handleBottomSheet } = useBottomSheet(); - if (!currentRecruitment && role !== 'REGULAR') { + if (role === 'REGULAR') { + return ( + { + window.location.href = 'https://study.gdschongik.com/'; + }} + /> + ); + } + + if (!currentRecruitment) { return ( ); } + const boxContent: Record< - UserRoleType, + Exclude, { title: string; description?: string; @@ -55,13 +70,6 @@ export const ApproveBox = ({ description: `${convertRecruitmentPeriod(currentRecruitment.period)}`, boxVariant: currentMembership ? 'text' : 'arrow', status: 'error' - }, - REGULAR: { - title: 'WOW CLASS', - description: - 'GDSC Hongik의 스터디 서비스인 WOW CLASS를 이용할 수 있어요.', - boxVariant: 'arrow', - status: 'success' } }; @@ -69,11 +77,7 @@ export const ApproveBox = ({ { if (role === 'ASSOCIATE' && !currentMembership) handleBottomSheet(); - else if (role === 'REGULAR') { - window.location.href = 'https://study.gdschongik.com/'; - } else { - return; - } + else return; }}>