1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-30 08:09:15 +01:00
metamask-extension/ui/pages/swaps/main-quote-summary/main-quote-summary.stories.js

68 lines
1.3 KiB
JavaScript
Raw Normal View History

import React from 'react';
import README from './README.mdx';
import MainQuoteSummary from './main-quote-summary';
2020-10-06 20:28:38 +02:00
export default {
title: 'Pages/Swaps/MainQuoteSummary',
id: __filename,
component: MainQuoteSummary,
parameters: {
docs: {
page: README,
},
},
argTypes: {
sourceValue: {
control: 'text',
},
sourceDecimals: {
control: 'number',
},
sourceSymbol: {
control: 'text',
},
destinationValue: {
control: 'text',
},
destinationDecimals: {
control: 'number',
},
destinationSymbol: {
control: 'text',
},
sourceIconUrl: {
control: 'text',
},
destinationIconUrl: {
control: 'text',
},
},
args: {
sourceValue: '2000000000000000000',
sourceDecimals: 18,
sourceSymbol: 'ETH',
destinationValue: '200000000000000000',
destinationDecimals: 18,
destinationSymbol: 'ABC',
sourceIconUrl: '.storybook/images/metamark.svg',
destinationIconUrl: '.storybook/images/sai.svg',
},
};
2020-10-06 20:28:38 +02:00
export const DefaultStory = (args) => {
2020-10-06 20:28:38 +02:00
return (
<div
style={{
width: '360px',
height: '224px',
border: '1px solid black',
padding: '24px',
}}
>
<MainQuoteSummary {...args} />
</div>
);
};
DefaultStory.storyName = 'Default';