mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-30 08:09:15 +01:00
f5c6d0054f
Co-authored-by: George Marshall <georgewrmarshall@gmail.com> Co-authored-by: Brad Decker <bhdecker84@gmail.com>
68 lines
1.3 KiB
JavaScript
68 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import README from './README.mdx';
|
|
import MainQuoteSummary from './main-quote-summary';
|
|
|
|
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',
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
return (
|
|
<div
|
|
style={{
|
|
width: '360px',
|
|
height: '224px',
|
|
border: '1px solid black',
|
|
padding: '24px',
|
|
}}
|
|
>
|
|
<MainQuoteSummary {...args} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|