mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
24 lines
571 B
JavaScript
24 lines
571 B
JavaScript
|
import React from 'react';
|
||
|
import { Provider } from 'react-redux';
|
||
|
import testData from '../../../../.storybook/test-data';
|
||
|
import configureStore from '../../../store/store';
|
||
|
import BetaHeader from '.';
|
||
|
|
||
|
const store = configureStore({
|
||
|
...testData,
|
||
|
metamask: { ...testData.metamask, isUnlocked: true, showBetaHeader: true },
|
||
|
});
|
||
|
|
||
|
export default {
|
||
|
title: 'Components/App/BetaHeader',
|
||
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
||
|
};
|
||
|
|
||
|
export const DefaultStory = () => (
|
||
|
<>
|
||
|
<BetaHeader />
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
DefaultStory.storyName = 'Default';
|