mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-06-09 23:06:01 +00:00
feat(navegacao): adiciona atalhos financeiros e seletor mensal
This commit is contained in:
@@ -3,6 +3,7 @@ import { NotificationBell } from "@/shared/components/navigation/navbar/notifica
|
||||
import { RefreshPageButton } from "@/shared/components/refresh-page-button";
|
||||
import type { DashboardNotificationsSnapshot } from "@/shared/lib/types/notifications";
|
||||
import { checkForUpdate } from "@/shared/lib/version/check-update";
|
||||
import type { NavbarFinanceLinks } from "./nav-items";
|
||||
import { NavMenu } from "./nav-menu";
|
||||
import { NavbarShell } from "./navbar-shell";
|
||||
import { NavbarUser } from "./navbar-user";
|
||||
@@ -17,6 +18,7 @@ type AppNavbarProps = {
|
||||
payerAvatarUrl: string | null;
|
||||
inboxPendingCount?: number;
|
||||
notificationsSnapshot: DashboardNotificationsSnapshot;
|
||||
financeLinks: NavbarFinanceLinks;
|
||||
};
|
||||
|
||||
export async function AppNavbar({
|
||||
@@ -24,12 +26,13 @@ export async function AppNavbar({
|
||||
payerAvatarUrl,
|
||||
inboxPendingCount = 0,
|
||||
notificationsSnapshot,
|
||||
financeLinks,
|
||||
}: AppNavbarProps) {
|
||||
const updateCheck = await checkForUpdate();
|
||||
|
||||
return (
|
||||
<NavbarShell logoHref="/dashboard" fixed>
|
||||
<NavMenu />
|
||||
<NavMenu financeLinks={financeLinks} />
|
||||
<div className="ml-auto flex items-center gap-2">
|
||||
<NotificationBell
|
||||
notifications={notificationsSnapshot.notifications}
|
||||
|
||||
Reference in New Issue
Block a user