2023-02-16 14:26:14 +01:00
|
|
|
import React from 'react';
|
|
|
|
import AssetListItem from '.';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/App/AssetListItem',
|
|
|
|
argTypes: {
|
|
|
|
className: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
iconClassName: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
onClick: {
|
|
|
|
action: 'onClick',
|
|
|
|
},
|
|
|
|
tokenAddress: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
tokenSymbol: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
tokenDecimals: {
|
|
|
|
control: 'number',
|
|
|
|
},
|
|
|
|
tokenImage: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
warning: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
primary: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
secondary: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
|
|
|
isERC721: {
|
|
|
|
control: 'boolean',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
tokenAddress: '0x2170ed0880ac9a755fd29b2688956bd959f933f8',
|
|
|
|
tokenSymbol: 'ETH',
|
2023-04-19 17:25:19 +02:00
|
|
|
tokenImage: './images/eth_logo.png',
|
2023-02-16 14:26:14 +01:00
|
|
|
identiconBorder: true,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => <AssetListItem {...args} />;
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|