Clear app badge when view Notifications page
This commit is contained in:
parent
0e745663f0
commit
852bb27e81
|
@ -194,6 +194,12 @@ function Notifications({ columnMode }) {
|
|||
|
||||
const announcementsListRef = useRef();
|
||||
|
||||
useLayoutEffect(() => {
|
||||
if (navigator.clearAppBadge) {
|
||||
navigator.clearAppBadge();
|
||||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (notificationID) {
|
||||
states.routeNotification = {
|
||||
|
|
Loading…
Reference in a new issue