From 7f1df2b7c99c37596e4a2cd863b8534f7539081c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Wed, 9 Apr 2025 12:06:19 +0200 Subject: [PATCH] fix: minor fix based on feedback --- .../MainLayout/NavigationSidebar/NavigationSidebar.tsx | 6 +++--- .../providers/UnleashFlagProvider/UnleashFlagProvider.tsx | 1 - frontend/src/interfaces/uiConfig.ts | 1 - 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/component/layout/MainLayout/NavigationSidebar/NavigationSidebar.tsx b/frontend/src/component/layout/MainLayout/NavigationSidebar/NavigationSidebar.tsx index 836b68a954..4742db4828 100644 --- a/frontend/src/component/layout/MainLayout/NavigationSidebar/NavigationSidebar.tsx +++ b/frontend/src/component/layout/MainLayout/NavigationSidebar/NavigationSidebar.tsx @@ -111,7 +111,7 @@ export const NavigationSidebar: FC<{ NewInUnleash?: typeof NewInUnleash }> = ({ NewInUnleash, }) => { const { routes } = useRoutes(); - const celebatoryUnleash = useFlag('celebrateUnleashFrontend'); + const celebrateUnleashFrontend = useFlag('celebrateUnleashFrontend'); const [mode, setMode] = useNavigationMode(); const [expanded, changeExpanded] = useExpanded<'configure' | 'admin'>(); @@ -139,7 +139,7 @@ export const NavigationSidebar: FC<{ NewInUnleash?: typeof NewInUnleash }> = ({ } elseShow={ @@ -148,7 +148,7 @@ export const NavigationSidebar: FC<{ NewInUnleash?: typeof NewInUnleash }> = ({ } lightmode={ } elseShow={ diff --git a/frontend/src/component/providers/UnleashFlagProvider/UnleashFlagProvider.tsx b/frontend/src/component/providers/UnleashFlagProvider/UnleashFlagProvider.tsx index 7e2f7f8390..91c8e1c2c3 100644 --- a/frontend/src/component/providers/UnleashFlagProvider/UnleashFlagProvider.tsx +++ b/frontend/src/component/providers/UnleashFlagProvider/UnleashFlagProvider.tsx @@ -37,7 +37,6 @@ export const UnleashFlagProvider: FC<{ children?: React.ReactNode }> = ({ const { uiConfig } = useUiConfig(); useEffect(() => { - console.log('uiConfig.unleashToken', token); if (uiConfig.unleashContext && token) { client.updateContext(uiConfig.unleashContext); if (!started) { diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index bb8e489e25..829b977855 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -36,7 +36,6 @@ export interface IUiConfig { oidcConfiguredThroughEnv?: boolean; samlConfiguredThroughEnv?: boolean; maxSessionsCount?: number; - unleashToken?: string; unleashContext?: IMutableContext; }