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 testData from '../../../../.storybook/test-data';
|
||||
import TokenSearch from './token-search.component';
|
||||
|
||||
export default {
|
||||
title: 'Pages/ImportToken/TokenSearch',
|
||||
id: __filename,
|
||||
argTypes: {
|
||||
error: {
|
||||
control: 'text',
|
||||
},
|
||||
onSearch: {
|
||||
action: 'onSearch',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const DefaultStory = () => {
|
||||
return <TokenSearch />;
|
||||
export const DefaultStory = (args) => {
|
||||
return <TokenSearch {...args} tokenList={testData.metamask.tokenList} />;
|
||||
};
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
||||
|
Loading…
Reference in New Issue
Block a user