We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb22131 commit bbf02f1Copy full SHA for bbf02f1
‎.storybook/preview.tsx‎
@@ -11,7 +11,6 @@ const preview: Preview = {
11
theme: {
12
name: "Theme",
13
description: "Choose between light and dark UI themes",
14
- defaultValue: "dark",
15
toolbar: {
16
icon: "mirror",
17
items: [
@@ -24,7 +23,7 @@ const preview: Preview = {
24
23
},
25
decorators: [
26
(Story, context) => {
27
- const mode = (context.globals.theme ?? "dark") as ThemeMode;
+ const mode = context.globals.theme as ThemeMode | undefined;
28
return (
29
<ThemeProvider forcedTheme={mode}>
30
<Story />
0 commit comments