mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
42 lines
966 B
JavaScript
42 lines
966 B
JavaScript
|
import React from 'react';
|
||
|
import { AccountPicker } from '.';
|
||
|
|
||
|
const CHAOS_ACCOUNT = {
|
||
|
address: '"0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e"',
|
||
|
name: 'Account That Has A Really Really Really Really Really Long Name',
|
||
|
};
|
||
|
|
||
|
export default {
|
||
|
title: 'Components/Multichain/AccountPicker',
|
||
|
component: AccountPicker,
|
||
|
argTypes: {
|
||
|
name: {
|
||
|
control: 'string',
|
||
|
},
|
||
|
address: {
|
||
|
control: 'string',
|
||
|
},
|
||
|
onClick: {
|
||
|
action: 'onClick',
|
||
|
},
|
||
|
},
|
||
|
args: {
|
||
|
address: '"0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e"',
|
||
|
name: 'Account 1',
|
||
|
onClick: () => undefined,
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const DefaultStory = (args) => <AccountPicker {...args} />;
|
||
|
DefaultStory.storyName = 'Default';
|
||
|
|
||
|
export const ChaosStory = (args) => (
|
||
|
<div
|
||
|
style={{ maxWidth: '300px', border: '1px solid var(--color-border-muted)' }}
|
||
|
>
|
||
|
<AccountPicker {...args} />
|
||
|
</div>
|
||
|
);
|
||
|
ChaosStory.storyName = 'Chaos';
|
||
|
ChaosStory.args = { name: CHAOS_ACCOUNT.name };
|