2020-10-06 20:28:38 +02:00
|
|
|
import React from 'react'
|
2020-10-25 14:23:34 +01:00
|
|
|
import { text, number } from '@storybook/addon-knobs/react'
|
2020-10-06 20:28:38 +02:00
|
|
|
import MainQuoteSummary from './main-quote-summary'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'MainQuoteSummary',
|
|
|
|
}
|
|
|
|
|
|
|
|
export const BestQuote = () => {
|
|
|
|
return (
|
2020-11-03 00:41:28 +01:00
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
width: '360px',
|
|
|
|
height: '224px',
|
|
|
|
border: '1px solid black',
|
|
|
|
padding: '24px',
|
|
|
|
}}
|
|
|
|
>
|
2020-10-25 14:23:34 +01:00
|
|
|
<MainQuoteSummary
|
|
|
|
sourceValue={text('sourceValue', '2000000000000000000')}
|
|
|
|
sourceDecimals={number('sourceDecimals', 18)}
|
|
|
|
sourceSymbol={text('sourceSymbol', 'ETH')}
|
|
|
|
destinationValue={text('destinationValue', '200000000000000000')}
|
|
|
|
destinationDecimals={number('destinationDecimals', 18)}
|
|
|
|
destinationSymbol={text('destinationSymbol', 'ABC')}
|
|
|
|
sourceIconUrl=".storybook/images/metamark.svg"
|
|
|
|
destinationIconUrl=".storybook/images/sai.svg"
|
|
|
|
/>
|
|
|
|
</div>
|
2020-10-06 20:28:38 +02:00
|
|
|
)
|
|
|
|
}
|