1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/multichain/account-list-item-menu/account-list-item-menu.stories.js
David Walsh 78a0587c97 Fix #20006 - Add Address Details and View on Explorer to Global Menu (#20013)
* Fix #20006 - Add Address Details and View on Explorer to Global Menu

* Fix tests
2023-07-26 17:42:34 -02:30

42 lines
870 B
JavaScript

import React from 'react';
import { AccountListItemMenu } from '.';
export default {
title: 'Components/Multichain/AccountListItemMenu',
component: AccountListItemMenu,
argTypes: {
anchorElement: {
control: 'window.Element',
},
onClose: {
action: 'onClose',
},
closeMenu: {
action: 'closeMenu',
},
isRemovable: {
control: 'boolean',
},
identity: {
control: 'object',
},
isOpen: {
control: 'boolean',
},
},
args: {
anchorElement: null,
identity: {
address: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
name: 'Account 1',
balance: '0x152387ad22c3f0',
tokenBalance: '32.09 ETH',
},
isRemovable: true,
isOpen: true,
},
};
export const DefaultStory = (args) => <AccountListItemMenu {...args} />;
DefaultStory.storyName = 'Default';