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:
parent
a7f9f2208d
commit
7f1df2b7c9
@ -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' />
|
||||
|
@ -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) {
|
||||
|
@ -36,7 +36,6 @@ export interface IUiConfig {
|
||||
oidcConfiguredThroughEnv?: boolean;
|
||||
samlConfiguredThroughEnv?: boolean;
|
||||
maxSessionsCount?: number;
|
||||
unleashToken?: string;
|
||||
unleashContext?: IMutableContext;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user