mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +01:00
38 lines
669 B
JavaScript
38 lines
669 B
JavaScript
|
import React from 'react';
|
||
|
|
||
|
import ListItemSearch from '.';
|
||
|
|
||
|
export default {
|
||
|
title: 'Pages/Swaps/SearchableItemList/ListItemSearch',
|
||
|
id: __filename,
|
||
|
argTypes: {
|
||
|
onSearch: {
|
||
|
action: 'onSearch',
|
||
|
},
|
||
|
error: {
|
||
|
control: 'text',
|
||
|
},
|
||
|
listToSearch: {
|
||
|
control: 'select',
|
||
|
},
|
||
|
fuseSearchKeys: {
|
||
|
control: 'select',
|
||
|
},
|
||
|
searchPlaceholderText: {
|
||
|
control: 'text',
|
||
|
},
|
||
|
defaultToAll: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
shouldSearchForImports: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const DefaultStory = (args) => {
|
||
|
return <ListItemSearch {...args} />;
|
||
|
};
|
||
|
|
||
|
DefaultStory.storyName = 'Default';
|