Skip to content

Commit

Permalink
fix: test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jun 7, 2024
1 parent 4119e38 commit 0623e4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/pwa/Test.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { useEffect } from 'react';
import {
registerServiceWorker,
requestNotificationPermission,
sendPushNotification
requestNotificationPermission
// sendPushNotification
} from './SetUp';

export const Test = () => {
// 푸시 알림 테스트
const clickPushHandler = () => {
sendPushNotification('매직포스 알림', '알림 가나요?');
};
// const clickPushHandler = () => {
// // sendPushNotification('매직포스 알림', '알림 가나요?');
// };
useEffect(() => {
registerServiceWorker();
requestNotificationPermission();
// 직접 푸시 알림 테스트
sendPushNotification('테스트 알림', '테스트 알림입니다.');
// sendPushNotification('테스트 알림', '테스트 알림입니다.');
}, []);

return <button onClick={clickPushHandler}>알림 보내기</button>;
// return <button onClick={clickPushHandler}>알림 보내기</button>;
};

0 comments on commit 0623e4c

Please sign in to comment.