Skip to content

Commit

Permalink
fix storybook theme defaults for new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoskolodny committed Oct 4, 2024
1 parent c8dcc2a commit 8efb8e7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,14 @@ const getTheme = (
selectedPlatform?: Platform,
selectedColorScheme?: ColorScheme
): ThemeConfig => {
const skin = selectedSkin ?? MOVISTAR_SKIN;
const platform = selectedPlatform ?? 'desktop';
const colorScheme = selectedColorScheme ?? 'auto';
const themeConfig = AVAILABLE_THEMES.find(({skin: skinConfig}) => skinConfig.name === skin) || Movistar;
const themeConfig =
AVAILABLE_THEMES.find(({skin: skinConfig}) => skinConfig.name === selectedSkin) || Movistar;
return {
...themeConfig,
colorScheme,
colorScheme: selectedColorScheme,
platformOverrides: {
platform,
insideNovumNativeApp: platform !== 'desktop',
platform: selectedPlatform,
insideNovumNativeApp: selectedPlatform !== 'desktop',
},
enableTabFocus: true,
dimensions: {
Expand Down

0 comments on commit 8efb8e7

Please sign in to comment.