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,
|
NewInUnleash,
|
||||||
}) => {
|
}) => {
|
||||||
const { routes } = useRoutes();
|
const { routes } = useRoutes();
|
||||||
const celebatoryUnleash = useFlag('celebrateUnleashFrontend');
|
const celebrateUnleashFrontend = useFlag('celebrateUnleashFrontend');
|
||||||
|
|
||||||
const [mode, setMode] = useNavigationMode();
|
const [mode, setMode] = useNavigationMode();
|
||||||
const [expanded, changeExpanded] = useExpanded<'configure' | 'admin'>();
|
const [expanded, changeExpanded] = useExpanded<'configure' | 'admin'>();
|
||||||
@ -139,7 +139,7 @@ export const NavigationSidebar: FC<{ NewInUnleash?: typeof NewInUnleash }> = ({
|
|||||||
<ThemeMode
|
<ThemeMode
|
||||||
darkmode={
|
darkmode={
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={celebatoryUnleash}
|
condition={celebrateUnleashFrontend}
|
||||||
show={<CelebatoryUnleashLogoWhite />}
|
show={<CelebatoryUnleashLogoWhite />}
|
||||||
elseShow={
|
elseShow={
|
||||||
<StyledUnleashLogoWhite aria-label='Unleash logo' />
|
<StyledUnleashLogoWhite aria-label='Unleash logo' />
|
||||||
@ -148,7 +148,7 @@ export const NavigationSidebar: FC<{ NewInUnleash?: typeof NewInUnleash }> = ({
|
|||||||
}
|
}
|
||||||
lightmode={
|
lightmode={
|
||||||
<ConditionallyRender
|
<ConditionallyRender
|
||||||
condition={celebatoryUnleash}
|
condition={celebrateUnleashFrontend}
|
||||||
show={<StyledCelebatoryLogo />}
|
show={<StyledCelebatoryLogo />}
|
||||||
elseShow={
|
elseShow={
|
||||||
<StyledUnleashLogo aria-label='Unleash logo' />
|
<StyledUnleashLogo aria-label='Unleash logo' />
|
||||||
|
@ -37,7 +37,6 @@ export const UnleashFlagProvider: FC<{ children?: React.ReactNode }> = ({
|
|||||||
const { uiConfig } = useUiConfig();
|
const { uiConfig } = useUiConfig();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log('uiConfig.unleashToken', token);
|
|
||||||
if (uiConfig.unleashContext && token) {
|
if (uiConfig.unleashContext && token) {
|
||||||
client.updateContext(uiConfig.unleashContext);
|
client.updateContext(uiConfig.unleashContext);
|
||||||
if (!started) {
|
if (!started) {
|
||||||
|
@ -36,7 +36,6 @@ export interface IUiConfig {
|
|||||||
oidcConfiguredThroughEnv?: boolean;
|
oidcConfiguredThroughEnv?: boolean;
|
||||||
samlConfiguredThroughEnv?: boolean;
|
samlConfiguredThroughEnv?: boolean;
|
||||||
maxSessionsCount?: number;
|
maxSessionsCount?: number;
|
||||||
unleashToken?: string;
|
|
||||||
unleashContext?: IMutableContext;
|
unleashContext?: IMutableContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user