mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-01 19:46:36 +03:00
grid: fix tsc
This commit is contained in:
parent
797e3453aa
commit
39871d1036
@ -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">
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user