fix(ui): remover avisos visuais e destacar atualizações

This commit is contained in:
Felipe Coutinho
2026-04-03 18:11:30 +00:00
parent 5c4995961c
commit f5cdae4853
11 changed files with 190 additions and 80 deletions

View File

@@ -2,6 +2,7 @@ import { AnimatedThemeToggler } from "@/shared/components/animated-theme-toggler
import { NotificationBell } from "@/shared/components/navigation/navbar/notification-bell";
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 { NavMenu } from "./nav-menu";
import { NavbarShell } from "./navbar-shell";
import { NavbarUser } from "./navbar-user";
@@ -18,12 +19,14 @@ type AppNavbarProps = {
notificationsSnapshot: DashboardNotificationsSnapshot;
};
export function AppNavbar({
export async function AppNavbar({
user,
pagadorAvatarUrl,
preLancamentosCount = 0,
notificationsSnapshot,
}: AppNavbarProps) {
const updateCheck = await checkForUpdate();
return (
<NavbarShell logoHref="/dashboard" fixed>
<NavMenu />
@@ -38,7 +41,11 @@ export function AppNavbar({
<RefreshPageButton variant="navbar" />
<AnimatedThemeToggler variant="navbar" />
</div>
<NavbarUser user={user} pagadorAvatarUrl={pagadorAvatarUrl} />
<NavbarUser
user={user}
pagadorAvatarUrl={pagadorAvatarUrl}
updateCheck={updateCheck}
/>
</NavbarShell>
);
}