Skip to content
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

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

Merged
merged 14 commits into from
Oct 26, 2024
3,662 changes: 1,831 additions & 1,831 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file modified .yarn/install-state.gz
Binary file not shown.
12 changes: 0 additions & 12 deletions src/components/alarmAdmin/AlarmList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,6 @@ function AlarmList(props: Props) {
}
};

const onSendAlarm = async (alarmId: number, title: string) => {
const response = window.confirm(`${title} 알림을 전송하시겠습니까?`);
if (response) {
setIsSending(true);
const result = await sendAlarm(alarmId);
setIsSending(false);
window.alert(result ? '전송에 성공했습니다' : '전송에 실패했습니다');
refetch();
}
};

const onShowAlarmDetail = (alarmId: number) => {
setShowAlarmDetail(alarmId);
};
Expand Down Expand Up @@ -122,7 +111,6 @@ function AlarmList(props: Props) {
text="전송"
onClick={(e) => {
e.stopPropagation();
onSendAlarm(alarm.alarmId, alarm.title);
}}
disabled={alarm.status === '발송 후'}
/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ReactNode } from 'react';
import styled from '@emotion/styled';
import { fontsObject } from '@sopt-makers/fonts';
import { colors } from '@sopt-makers/colors';
import { fontsObject } from '@sopt-makers/fonts';
import { ReactNode } from 'react';

interface LabelProps {
labelText: string;
Expand Down
Loading