Skip to content

[FEATURE] 알림 발송 API 연결 #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Oct 26, 2024
Merged
4 changes: 2 additions & 2 deletions src/components/alarmAdmin/CreateAlarmModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ function CreateAlarmModal(props: Props) {

// 발송하기 버튼 활성화 검증 로직 함수
const checkDisabled = () => {
// 여기 CSV 파일 업로드 관련 검증 로직 추가 필요

// 활동 회원 선택했는데 파트를 선택 안 하면 비활성화
if (selectedTarget === '활동 회원' && selectedPart === '') return true;
// 알림 제목 안 적으면 비활성화
Expand All @@ -137,6 +135,8 @@ function CreateAlarmModal(props: Props) {
if (sendType === 'RESERVE' && bannedTimeList.includes(selectedTime))
return true;

if (targetList.length > 0) return true;

return false;
};

Expand Down