Skip to content

Commit a163961

Browse files
committed
frontend: Sidebar story: Add missing theme redux state
Signed-off-by: Oleksandr Dubenko <[email protected]>
1 parent 72e47bd commit a163961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/components/Sidebar/Sidebar.stories.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { configureStore } from '@reduxjs/toolkit';
22
import { Meta, StoryFn } from '@storybook/react';
33
import { SnackbarProvider } from 'notistack';
4+
import { initialState as THEME_INITIAL_STATE } from '../../components/App/themeSlice';
45
import { initialState as CONFIG_INITIAL_STATE } from '../../redux/configSlice';
56
import { initialState as FILTER_INITIAL_STATE } from '../../redux/filterSlice';
67
import { INITIAL_STATE as UI_INITIAL_STATE } from '../../redux/reducers/ui';
@@ -29,6 +30,9 @@ const Template: StoryFn<StoryProps> = args => {
2930
plugins: {
3031
loaded: true,
3132
},
33+
theme: {
34+
...THEME_INITIAL_STATE,
35+
},
3236
config: {
3337
...CONFIG_INITIAL_STATE,
3438
},

0 commit comments

Comments
 (0)