1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Minimal fix to the TokenSearch story to ensure it compiles and works. (#13623)

This commit is contained in:
Rob Dawson 2022-02-17 09:13:30 -07:00 committed by GitHub
parent 4a6082f1d7
commit 93af95f968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';