From 39871d10366810d35e928e97b966a4cff98c6e7b Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Wed, 8 Sep 2021 16:38:47 +1000 Subject: [PATCH] grid: fix tsc --- pkg/grid/src/nav/Notifications.tsx | 2 -- pkg/grid/src/nav/NotificationsLink.tsx | 4 ++-- pkg/grid/src/state/hark.ts | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/pkg/grid/src/nav/Notifications.tsx b/pkg/grid/src/nav/Notifications.tsx index e1d6c47d2..104d0f662 100644 --- a/pkg/grid/src/nav/Notifications.tsx +++ b/pkg/grid/src/nav/Notifications.tsx @@ -48,8 +48,6 @@ export const Notifications = () => { getMore(); }, []); - console.log(unreads); - return (
diff --git a/pkg/grid/src/nav/NotificationsLink.tsx b/pkg/grid/src/nav/NotificationsLink.tsx index 5591dfac3..894c318a2 100644 --- a/pkg/grid/src/nav/NotificationsLink.tsx +++ b/pkg/grid/src/nav/NotificationsLink.tsx @@ -25,8 +25,8 @@ type NotificationsLinkProps = Omit, 'to'> & { }; export const NotificationsLink = ({ isOpen }: NotificationsLinkProps) => { - const { unreads, systemNotifications } = useNotifications(); - const state = getNotificationsState(unreads, systemNotifications); + const { unreads } = useNotifications(); + const state = getNotificationsState(unreads); return ( { + u.more.forEach((upd: any) => { reduceHark(upd); }); } else if ('all-stats' in u) { @@ -91,5 +91,3 @@ api.subscribe({ }); } }); - -window.hark = useHarkStore.getState;