Skip to content

Commit

Permalink
chore: implement onSignout click for standalone signout button
Browse files Browse the repository at this point in the history
  • Loading branch information
jared-dickman committed Mar 11, 2024
1 parent 9eeb406 commit 1cec9b3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/components/navigation/GlobalNavigation/GlobalNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,15 @@ export const GlobalNavigation = (props: IGlobalNavigationProps) => {
avatarOptions={props.avatarOptions}
/>
) : (
<NavigationItem type="link" icon={<SignoutIcon />} label="Sign Out" hideLabel />
!!props.signoutOptions?.onSignout && (
<NavigationItem
type="link"
icon={<SignoutIcon />}
label="Sign Out"
hideLabel
onClick={props.signoutOptions?.onSignout}
/>
)
)}

{!props.hideMpHome && (
Expand Down

0 comments on commit 1cec9b3

Please sign in to comment.