mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 16:18:07 +01:00
5273aa334e
* account-list-item * Updates Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
41 lines
822 B
JavaScript
41 lines
822 B
JavaScript
import React from 'react';
|
|
import README from './README.mdx';
|
|
import AccountListItem from './account-list-item';
|
|
|
|
export default {
|
|
title: 'Components/App/AccountListItem',
|
|
id: __filename,
|
|
component: AccountListItem,
|
|
parameters: {
|
|
docs: {
|
|
page: README,
|
|
},
|
|
},
|
|
argTypes: {
|
|
account: {
|
|
control: 'object',
|
|
},
|
|
className: { control: 'text' },
|
|
displayAddress: { control: 'boolean' },
|
|
handleClick: { action: 'handleClick' },
|
|
},
|
|
};
|
|
|
|
const account = {
|
|
name: 'Account 2',
|
|
address: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
|
|
balance: '0x2d3142f5000',
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
return <AccountListItem {...args} />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
DefaultStory.args = {
|
|
account,
|
|
displayAddress: false,
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|