mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-04 23:14:56 +01:00
29 lines
746 B
JavaScript
29 lines
746 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
|
|
import testData from '../../../../../.storybook/test-data';
|
|
import configureStore from '../../../../store/store';
|
|
import DetectedTokensLink from './detected-tokens-link';
|
|
|
|
const store = configureStore(testData);
|
|
|
|
export default {
|
|
title: 'Components/App/AssetList/DetectedTokensLink',
|
|
decorators: [(story) => <Provider store={store}>{story()}</Provider>],
|
|
id: __filename,
|
|
argTypes: {
|
|
setShowDetectedTokens: { control: 'func' },
|
|
},
|
|
args: {
|
|
setShowDetectedTokens: 'setShowDetectedTokensSpy',
|
|
},
|
|
};
|
|
|
|
const Template = (args) => {
|
|
return <DetectedTokensLink {...args} />;
|
|
};
|
|
|
|
export const DefaultStory = Template.bind({});
|
|
|
|
DefaultStory.storyName = 'Default';
|