Skip to content

Commit

Permalink
chore: set feature flags from env
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Flitton <[email protected]>
  • Loading branch information
FrankFlitton committed Jul 25, 2023
1 parent ab8b58b commit 679acbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/console/src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,12 @@ export const AppComponent: React.FC<AppComponentProps> = (
const horizontalLayoutFlag =
`${env.HORIZONTAL_LAYOUT}`.trim().toLowerCase() === 'true';

const breadcrumbsFlag = `${env.BREADCRUMBS}`.trim().toLowerCase() === 'true';

return (
<FeatureFlagsProvider externalFlags={props.env}>
<FeatureFlagsProvider
externalFlags={{ ...props.env, breadcrumbs: breadcrumbsFlag }}
>
<GlobalStyles />
<LocalCacheProvider>
<StylesProvider
Expand Down

0 comments on commit 679acbb

Please sign in to comment.