Skip to content

docs: fix storybook #2388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React from 'react';
import { Provider } from 'react-redux';
import { MemoryRouter } from 'react-router';

import ThemeProvider from '../client/modules/App/components/ThemeProvider';
import configureStore from '../client/store';
import '../client/i18n-test';
import '../client/styles/build/css/main.css'
import '../client/styles/storybook.css'

const initialState = window.__INITIAL_STATE__;

Expand All @@ -13,9 +14,11 @@ const store = configureStore(initialState);
export const decorators = [
(Story) => (
<Provider store={store}>
<ThemeProvider>
<Story />
</ThemeProvider>
<MemoryRouter>
<ThemeProvider>
<Story />
</ThemeProvider>
</MemoryRouter>
</Provider>
),
]
Expand Down
1 change: 1 addition & 0 deletions client/styles/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
storybook.css
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this! ❤️ We definitely don't want to include temporary/autogenerated files in the repo.

Loading