mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Minimal fix to the TokenSearch story to ensure it compiles and works. (#13623)
This commit is contained in:
parent
4a6082f1d7
commit
93af95f968
@ -1,13 +1,22 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import testData from '../../../../.storybook/test-data';
|
||||||
import TokenSearch from './token-search.component';
|
import TokenSearch from './token-search.component';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: 'Pages/ImportToken/TokenSearch',
|
title: 'Pages/ImportToken/TokenSearch',
|
||||||
id: __filename,
|
id: __filename,
|
||||||
|
argTypes: {
|
||||||
|
error: {
|
||||||
|
control: 'text',
|
||||||
|
},
|
||||||
|
onSearch: {
|
||||||
|
action: 'onSearch',
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const DefaultStory = () => {
|
export const DefaultStory = (args) => {
|
||||||
return <TokenSearch />;
|
return <TokenSearch {...args} tokenList={testData.metamask.tokenList} />;
|
||||||
};
|
};
|
||||||
|
|
||||||
DefaultStory.storyName = 'Default';
|
DefaultStory.storyName = 'Default';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user