Skip to content

Commit

Permalink
fix(Storybook): updates ThemePicker config to match Josh fix in inner…
Browse files Browse the repository at this point in the history
… source v7 upgrade
  • Loading branch information
arwehrman committed Oct 18, 2023
1 parent dc3635b commit cdd6d62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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;
Expand Down

0 comments on commit cdd6d62

Please sign in to comment.