1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 20:57:12 +01:00
metamask-extension/ui/components/app/user-preferenced-currency-display/user-preferenced-currency-display.stories.js
George Marshall 9ce966ba1d
Storybook housekeeping 🧹 (#14331)
* Removing argTypes that are related to static props and don't have anything to do with the component. Also some general house keeping

* updates
2022-04-07 08:14:22 -07:00

64 lines
1.1 KiB
JavaScript

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',
},
showFiat: {
control: 'boolean',
},
},
args: {
type: ETH,
},
};
export const DefaultStory = (args) => (
<UserPreferencedCurrencyDisplay {...args} />
);
DefaultStory.storyName = 'Default';