Created
December 8, 2020 08:33
-
-
Save ChrisLowe-Takor/0d5c3ba83b3dbe12297d9a9d7a290a8b to your computer and use it in GitHub Desktop.
Using redux state in storybook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Story, Meta } from '@storybook/react/types-6-0'; | |
import { Provider } from 'react-redux'; | |
import store from '../../../../store/store'; | |
import SentinelDrawer from './sentinel-drawer'; | |
export default { | |
title: 'Sentinel Drawer' | |
} as Meta; | |
const SentinelDrawerStory: Story = () => { | |
return ( | |
<Provider store={store}> | |
<SentinelDrawer /> | |
</Provider> | |
) | |
}; | |
export const SentinelDrawerStory.bind({}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment