Skip to content

Commit

Permalink
fix: storybook preview
Browse files Browse the repository at this point in the history
  • Loading branch information
faustoq committed Jul 11, 2024
1 parent c8696ff commit 7d29c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const DARK_THEME_BG = '#050505'
const preview = {
decorators: [
(story, context) => {
const classTheme = context.globals.backgrounds.value === DARK_THEME_BG ? 'theme-dark' : 'theme-light'
const classTheme = context.globals?.backgrounds?.value === DARK_THEME_BG ? 'theme-dark' : 'theme-light'
return `<div id="orama-ui" class="${classTheme}" style="padding: 20px">${story()}</div>`
},
],
Expand Down

0 comments on commit 7d29c89

Please sign in to comment.