You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
949 B
50 lines
949 B
3 years ago
|
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';
|