A Metamask fork with Infura removed and default networks editable
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.
ciphermask/ui/components/app/user-preferenced-currency-d.../user-preferenced-currency-d...

61 lines
1.1 KiB

import React from 'react';
import { PRIMARY, SECONDARY, ETH } from '../../../helpers/constants/common';
import UserPreferencedCurrencyDisplay from '.';
export default {
title: 'Components/App/UserPreferencedCurrencyDisplay',
id: __filename,
argTypes: {
className: {
control: 'text',
},
'data-testid': {
control: 'text',
},
prefix: {
control: 'text',
},
value: {
control: 'text',
},
numberOfDecimals: {
control: 'number',
},
hideLabel: {
control: 'boolean',
},
hideTitle: {
control: 'boolean',
},
style: {
control: 'object',
},
showEthLogo: {
control: 'boolean',
},
ethLogoHeight: {
control: 'number',
},
type: {
control: 'select',
options: [PRIMARY, SECONDARY],
},
ethNumberOfDecimals: {
control: 'number',
},
fiatNumberOfDecimals: {
control: 'number',
},
},
args: {
type: ETH,
},
};
export const DefaultStory = (args) => (
<UserPreferencedCurrencyDisplay {...args} />
);
DefaultStory.storyName = 'Default';