mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 14:15:06 +01:00
50 lines
949 B
JavaScript
50 lines
949 B
JavaScript
|
import React from 'react';
|
||
|
import AppHeader from '.';
|
||
|
|
||
|
export default {
|
||
|
title: 'Components/App/AppHeader',
|
||
|
id: __filename,
|
||
|
argTypes: {
|
||
|
history: {
|
||
|
control: 'object',
|
||
|
},
|
||
|
networkDropdownOpen: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
showNetworkDropdown: {
|
||
|
action: 'showNetworkDropdown',
|
||
|
},
|
||
|
hideNetworkDropdown: {
|
||
|
action: 'hideNetworkDropdown',
|
||
|
},
|
||
|
toggleAccountMenu: {
|
||
|
action: 'toggleAccountMenu',
|
||
|
},
|
||
|
selectedAddress: {
|
||
|
control: 'text',
|
||
|
},
|
||
|
isUnlocked: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
hideNetworkIndicator: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
disabled: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
disableNetworkIndicator: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
isAccountMenuOpen: {
|
||
|
control: 'boolean',
|
||
|
},
|
||
|
onClick: {
|
||
|
action: 'onClick',
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const DefaultStory = (args) => <AppHeader {...args} />;
|
||
|
|
||
|
DefaultStory.storyName = 'Default';
|