grid: fix tsc

This commit is contained in:
Liam Fitzgerald 2021-09-08 16:38:47 +10:00
parent 797e3453aa
commit 39871d1036
3 changed files with 3 additions and 7 deletions

View File

@ -48,8 +48,6 @@ export const Notifications = () => {
getMore();
}, []);
console.log(unreads);
return (
<div className="grid grid-rows-[auto,1fr] h-full p-4 md:p-8 overflow-hidden">
<header className="space-x-2 mb-8">

View File

@ -25,8 +25,8 @@ type NotificationsLinkProps = Omit<LinkProps<HTMLAnchorElement>, 'to'> & {
};
export const NotificationsLink = ({ isOpen }: NotificationsLinkProps) => {
const { unreads, systemNotifications } = useNotifications();
const state = getNotificationsState(unreads, systemNotifications);
const { unreads } = useNotifications();
const state = getNotificationsState(unreads);
return (
<Link

View File

@ -54,7 +54,7 @@ function reduceHark(u: any) {
return;
}
if ('more' in u) {
u.more.forEach((upd) => {
u.more.forEach((upd: any) => {
reduceHark(upd);
});
} else if ('all-stats' in u) {
@ -91,5 +91,3 @@ api.subscribe({
});
}
});
window.hark = useHarkStore.getState;