Comment out test code

This commit is contained in:
Lim Chee Aun 2023-10-23 11:12:28 +08:00
parent 2c4dd0cdb7
commit f2c2983663

View file

@ -217,23 +217,23 @@ function Notifications({ columnMode }) {
}
}, [notificationID, notificationAccessToken]);
useEffect(() => {
if (uiState === 'default') {
(async () => {
try {
const registration = await getRegistration();
if (registration?.getNotifications) {
const notifications = await registration.getNotifications();
console.log('🔔 Push notifications', notifications);
// Close all notifications?
// notifications.forEach((notification) => {
// notification.close();
// });
}
} catch (e) {}
})();
}
}, [uiState]);
// useEffect(() => {
// if (uiState === 'default') {
// (async () => {
// try {
// const registration = await getRegistration();
// if (registration?.getNotifications) {
// const notifications = await registration.getNotifications();
// console.log('🔔 Push notifications', notifications);
// // Close all notifications?
// // notifications.forEach((notification) => {
// // notification.close();
// // });
// }
// } catch (e) {}
// })();
// }
// }, [uiState]);
return (
<div