2021-08-31 01:02:39 +02:00
|
|
|
import React from 'react';
|
2021-12-07 18:45:04 +01:00
|
|
|
import README from './README.mdx';
|
2021-08-31 01:02:39 +02:00
|
|
|
import AccountListItem from './account-list-item';
|
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Components/App/AccountListItem',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2021-12-07 18:45:04 +01:00
|
|
|
component: AccountListItem,
|
|
|
|
parameters: {
|
|
|
|
docs: {
|
|
|
|
page: README,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
argTypes: {
|
|
|
|
account: {
|
|
|
|
control: 'object',
|
|
|
|
},
|
|
|
|
className: { control: 'text' },
|
|
|
|
displayAddress: { control: 'boolean' },
|
|
|
|
handleClick: { action: 'handleClick' },
|
|
|
|
},
|
2021-08-31 01:02:39 +02:00
|
|
|
};
|
|
|
|
|
2021-12-07 18:45:04 +01:00
|
|
|
const account = {
|
|
|
|
name: 'Account 2',
|
|
|
|
address: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
|
|
|
|
balance: '0x2d3142f5000',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <AccountListItem {...args} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
DefaultStory.args = {
|
|
|
|
account,
|
|
|
|
displayAddress: false,
|
2021-08-31 01:02:39 +02:00
|
|
|
};
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|