2021-08-31 01:04:05 +02:00
|
|
|
import React from 'react';
|
2022-02-17 17:13:30 +01:00
|
|
|
import testData from '../../../../.storybook/test-data';
|
2021-08-31 01:04:05 +02:00
|
|
|
import TokenSearch from './token-search.component';
|
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/ImportToken/TokenSearch',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-02-17 17:13:30 +01:00
|
|
|
argTypes: {
|
|
|
|
error: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
onSearch: {
|
|
|
|
action: 'onSearch',
|
|
|
|
},
|
|
|
|
},
|
2021-08-31 01:04:05 +02:00
|
|
|
};
|
|
|
|
|
2022-02-17 17:13:30 +01:00
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <TokenSearch {...args} tokenList={testData.metamask.tokenList} />;
|
2021-08-31 01:04:05 +02:00
|
|
|
};
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|