From e73dbba9af8d9e3b33859ad1767f6e6abba04bd7 Mon Sep 17 00:00:00 2001 From: jdickman Date: Mon, 11 Mar 2024 10:00:55 -0600 Subject: [PATCH] handle demo usecase where workspace is not switchable --- src/assets/svg/signout.svg | 7 +++++++ .../navigation/GlobalNavigation/GlobalNavigation.tsx | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/assets/svg/signout.svg diff --git a/src/assets/svg/signout.svg b/src/assets/svg/signout.svg new file mode 100644 index 000000000..3838047b5 --- /dev/null +++ b/src/assets/svg/signout.svg @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/src/components/navigation/GlobalNavigation/GlobalNavigation.tsx b/src/components/navigation/GlobalNavigation/GlobalNavigation.tsx index 78cb9d43f..73879b023 100644 --- a/src/components/navigation/GlobalNavigation/GlobalNavigation.tsx +++ b/src/components/navigation/GlobalNavigation/GlobalNavigation.tsx @@ -14,7 +14,9 @@ import { type IGlobalNavigationManagement } from 'src/components/navigation/Glob import { type IGlobalNavigationTool } from 'src/components/navigation/GlobalNavigation/GlobalNavigationItems' import { type INavigationOrg } from 'src/components' import MpLogo from 'src/assets/svg/mpLogo.svg?react' +import SignoutIcon from 'src/assets/svg/signout.svg?react' import { type IGlobalNavigationLogo } from 'src/components' +import { NavigationItem } from 'src/components/navigation/GlobalNavigation/NavigationItem' export interface IGlobalNavigationProps { logo: IGlobalNavigationLogo @@ -59,12 +61,14 @@ export const GlobalNavigation = (props: IGlobalNavigationProps) => {
- {props.orgs && ( + {props.orgs ? ( + ) : ( + } label="Sign Out" hideLabel /> )} {!props.hideMpHome && ( @@ -84,4 +88,4 @@ export const GlobalNavigation = (props: IGlobalNavigationProps) => { ) -} +} \ No newline at end of file