diff --git a/web/components/nav/nav-bar.tsx b/web/components/nav/nav-bar.tsx index 9f0f8ddd..2b065f1c 100644 --- a/web/components/nav/nav-bar.tsx +++ b/web/components/nav/nav-bar.tsx @@ -9,7 +9,7 @@ import { import { Transition, Dialog } from '@headlessui/react' import { useState, Fragment } from 'react' import Sidebar, { Item } from './sidebar' -import { useUser } from 'web/hooks/use-user' +import { usePrivateUser, useUser } from 'web/hooks/use-user' import { formatMoney } from 'common/util/format' import { Avatar } from '../avatar' import clsx from 'clsx' @@ -17,6 +17,8 @@ import { useRouter } from 'next/router' import NotificationsIcon from 'web/components/notifications-icon' import { useIsIframe } from 'web/hooks/use-is-iframe' import { trackCallback } from 'web/lib/service/analytics' +import { useUnseenPreferredNotifications } from 'web/hooks/use-notifications' +import { PrivateUser } from 'common/user' function getNavigation() { return [ @@ -42,6 +44,7 @@ export function BottomNavBar() { const currentPage = router.pathname const user = useUser() + const privateUser = usePrivateUser(user?.id) const isIframe = useIsIframe() if (isIframe) { @@ -81,8 +84,12 @@ export function BottomNavBar() { className="w-full select-none py-1 px-3 text-center hover:cursor-pointer hover:bg-indigo-200 hover:text-indigo-700" onClick={() => setSidebarOpen(true)} > -