mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 05:12:18 +01:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import React from 'react'
|
|
import { text, number, boolean } from '@storybook/addon-knobs/react'
|
|
import MainQuoteSummary from './main-quote-summary'
|
|
|
|
export default {
|
|
title: 'MainQuoteSummary',
|
|
}
|
|
|
|
export const BestQuote = () => {
|
|
return (
|
|
<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')}
|
|
isBestQuote={boolean('isBestQuote', true)}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export const NotBestQuote = () => {
|
|
return (
|
|
<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')}
|
|
isBestQuote={boolean('isBestQuote', false)}
|
|
/>
|
|
)
|
|
}
|