diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/constants.js b/packages/apps/lightning-ui-docs/.storybook/addons/constants.js index 1bd217e1c..77572d9ac 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/constants.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/constants.js @@ -26,4 +26,3 @@ export const THEMEPANEL_ID = `${ADDON_ID}/themepanel`; export const COMPONENTSTYLES_ID = `${ADDON_ID}/componentstylespanel`; export const STAGECOLOR_ID = `${ADDON_ID}/stagecolortoggle`; export const THEMEPICKER_ID = `${ADDON_ID}/themepicker`; -export const THEMES = {}; diff --git a/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js b/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js index d525c0675..7ad17157a 100644 --- a/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js +++ b/packages/apps/lightning-ui-docs/.storybook/addons/toolbars/ThemePicker.js @@ -19,7 +19,7 @@ import React, { useState, useEffect } from 'react'; import { useGlobals } from '@storybook/manager-api'; import { TabButton, TooltipLinkList, WithTooltip } from '@storybook/components'; -import { THEMEPICKER_ID, THEMES } from '../constants'; +import { THEMEPICKER_ID } from '../constants'; import { setGlobalTheme } from '../../utils/themeUtils'; import { utils } from '@lightningjs/ui-components/src'; @@ -40,7 +40,7 @@ export default () => { updateFirstLoad(false); // Makes sure the block above only runs once updateTooltipLinks( - ['base', ...Object.keys(THEMES), 'custom'] // create dropdown list of themes + ['base'] .filter(theme => ('custom' === LUITheme ? theme : 'custom' !== theme)) .map((theme, idx) => { const active = theme.toLowerCase() === LUITheme;