diff --git a/dashboard-ui/src/components/layouts/AppLayout.tsx b/dashboard-ui/src/components/layouts/AppLayout.tsx index fb0ace2b9..89c94c8a9 100644 --- a/dashboard-ui/src/components/layouts/AppLayout.tsx +++ b/dashboard-ui/src/components/layouts/AppLayout.tsx @@ -14,10 +14,10 @@ import Footer from '@/components/widgets/Footer'; import UpdateBanner from '@/components/widgets/UpdateBanner'; -import { useUpdateNotification } from '@/lib/update-notifications'; +import { useCLIUpdateNotification } from '@/lib/update-notifications'; export default function AppLayout({ children }: React.PropsWithChildren) { - const { showBanner, currentVersion, latestVersion, dismiss, dontRemindMe } = useUpdateNotification(); + const { showBanner, currentVersion, latestVersion, dismiss, dontRemindMe } = useCLIUpdateNotification(); return (
+ Cluster update: {currentVersion} → {latestVersion} +
+Notifications
- {updateAvailable && latestVersion ? ( + {hasCliUpdate && (CLI update: {currentVersion} → {latestVersion}
No new notifications
)} + {hasClusterUpdate &&No new notifications
}