From f2c2983663a6d60b954e9ca8c4c07da29815db1f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 23 Oct 2023 11:12:28 +0800 Subject: [PATCH] Comment out test code --- src/pages/notifications.jsx | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/pages/notifications.jsx b/src/pages/notifications.jsx index a6cda934..da66b192 100644 --- a/src/pages/notifications.jsx +++ b/src/pages/notifications.jsx @@ -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 (