1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

fix: minor fix based on feedback

This commit is contained in:
Ivar Conradi Østhus 2025-04-09 12:06:19 +02:00
parent a7f9f2208d
commit 7f1df2b7c9
No known key found for this signature in database
GPG Key ID: 14F51E4841AF1DE1
3 changed files with 3 additions and 5 deletions

View File

@ -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 }> = ({
<ThemeMode
darkmode={
<ConditionallyRender
condition={celebatoryUnleash}
condition={celebrateUnleashFrontend}
show={<CelebatoryUnleashLogoWhite />}
elseShow={
<StyledUnleashLogoWhite aria-label='Unleash logo' />
@ -148,7 +148,7 @@ export const NavigationSidebar: FC<{ NewInUnleash?: typeof NewInUnleash }> = ({
}
lightmode={
<ConditionallyRender
condition={celebatoryUnleash}
condition={celebrateUnleashFrontend}
show={<StyledCelebatoryLogo />}
elseShow={
<StyledUnleashLogo aria-label='Unleash logo' />

View File

@ -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) {

View File

@ -36,7 +36,6 @@ export interface IUiConfig {
oidcConfiguredThroughEnv?: boolean;
samlConfiguredThroughEnv?: boolean;
maxSessionsCount?: number;
unleashToken?: string;
unleashContext?: IMutableContext;
}