Skip to content

Commit

Permalink
docs(Storybook): remove deprecated themes (#3358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas742 committed Aug 10, 2022
1 parent c550463 commit 760df26
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,21 @@ const ThemeProviderDecorator = makeDecorator({

export const decorators = [ThemeProviderDecorator];

const DEPRECATED_THEMES = new Set(['sap_belize_hcb', 'sap_belize_hcw']);

export const globalTypes = {
theme: {
title: 'Theme',
description: 'Fiori Theme',
defaultValue: Themes.sap_fiori_3,
toolbar: {
title: 'Theme',
items: Object.keys(Themes).map((themeKey) => ({
value: themeKey,
title: themeKey
}))
items: Object.keys(Themes)
.filter((key) => !DEPRECATED_THEMES.has(key))
.map((themeKey) => ({
value: themeKey,
title: themeKey
}))
}
},
contentDensity: {
Expand Down

0 comments on commit 760df26

Please sign in to comment.