mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 12:56:01 +01:00
55abc00c34
* Updating all caret icons * lint fixes * Fixing settings search list
41 lines
732 B
JavaScript
41 lines
732 B
JavaScript
import React from 'react';
|
|
import NetworkDisplay from '.';
|
|
|
|
export default {
|
|
title: 'Components/App/NetworkDisplay',
|
|
id: __filename,
|
|
argTypes: {
|
|
colored: {
|
|
control: 'boolean',
|
|
},
|
|
indicatorSize: {
|
|
control: 'oneOf(Object.values(SIZES))',
|
|
},
|
|
labelProps: {
|
|
control: 'labelProps',
|
|
},
|
|
targetNetwork: {
|
|
control: 'object',
|
|
},
|
|
outline: {
|
|
control: 'boolean',
|
|
},
|
|
disabled: {
|
|
control: 'boolean',
|
|
},
|
|
iconClassName: {
|
|
control: 'text',
|
|
},
|
|
onClick: {
|
|
action: 'onClick',
|
|
},
|
|
},
|
|
args: {
|
|
iconClassName: 'caret',
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <NetworkDisplay {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|