Skip to content

Commit

Permalink
shell-ui: Expose isFirstTimeLogin through NavbarUpdaterComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengYanJin committed Aug 7, 2023
1 parent 2727779 commit e526221
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shell-ui/src/navbar/NavbarUpdaterComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { ErrorBoundary } from 'react-error-boundary';
import { useEffect } from 'react';
import { useNavbar } from './navbarHooks';
import { useNotificationCenter } from '../NotificationCenterProvider';
import { useFirstTimeLogin } from '../auth/FirstTimeLoginProvider';
import { useAuth } from '../auth/AuthProvider';

export const NavbarUpdaterComponents = () => {
const deployedApps = useDeployedApps();
Expand Down Expand Up @@ -62,6 +64,8 @@ export const NavbarUpdaterComponents = () => {
timerId = setTimeout(timer, 1000);
return () => clearTimeout(timerId);
}, [areRemoteEntriesFileParsed, setMicroAppsAreReady]);
const isFirstTimeLogin = useFirstTimeLogin();
const { userData } = useAuth();
return (
<>
{componentsToFederate.map((component, index) => {
Expand All @@ -81,6 +85,8 @@ export const NavbarUpdaterComponents = () => {
navbarManagementProps,
publishNotification: publish,
unPublishNotification: unPublish,
isFirstTimeLogin,
userData,
}}
/>
</ErrorBoundary>
Expand Down

0 comments on commit e526221

Please sign in to comment.