2021-02-04 19:15:23 +01:00
|
|
|
import React from 'react';
|
2022-06-15 17:43:26 +02:00
|
|
|
import README from './README.mdx';
|
2021-02-04 19:15:23 +01:00
|
|
|
import MainQuoteSummary from './main-quote-summary';
|
2020-10-06 20:28:38 +02:00
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/Swaps/MainQuoteSummary',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2022-06-15 17:43:26 +02:00
|
|
|
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',
|
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-10-06 20:28:38 +02:00
|
|
|
|
2022-06-15 17:43:26 +02:00
|
|
|
export const DefaultStory = (args) => {
|
2020-10-06 20:28:38 +02:00
|
|
|
return (
|
2020-12-08 17:47:53 +01:00
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
width: '360px',
|
|
|
|
height: '224px',
|
|
|
|
border: '1px solid black',
|
|
|
|
padding: '24px',
|
|
|
|
}}
|
|
|
|
>
|
2022-06-15 17:43:26 +02:00
|
|
|
<MainQuoteSummary {...args} />
|
2020-12-08 17:47:53 +01:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
};
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|