2021-02-04 19:15:23 +01:00
|
|
|
import React from 'react';
|
|
|
|
import ExchangeRateDisplay from './exchange-rate-display';
|
2020-08-18 15:53:54 +02:00
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/Swaps/ExchangeRateDisplay',
|
2021-09-15 20:55:48 +02:00
|
|
|
id: __filename,
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-08-18 15:53:54 +02:00
|
|
|
|
2022-02-21 15:13:11 +01:00
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <ExchangeRateDisplay {...args} />;
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-08-18 15:53:54 +02:00
|
|
|
|
2021-12-01 20:27:57 +01:00
|
|
|
DefaultStory.storyName = 'Default';
|
|
|
|
|
2022-02-21 15:13:11 +01:00
|
|
|
DefaultStory.argTypes = {
|
|
|
|
primaryTokenValue: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: '2000000000000000000',
|
|
|
|
},
|
|
|
|
primaryTokenDecimals: {
|
|
|
|
control: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
|
|
|
defaultValue: 18,
|
|
|
|
},
|
|
|
|
primaryTokenSymbol: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: 'ETH',
|
|
|
|
},
|
|
|
|
secondaryTokenValue: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: '200000000000000000',
|
|
|
|
},
|
|
|
|
secondaryTokenDecimals: {
|
|
|
|
control: 'number',
|
|
|
|
defaultValue: 18,
|
|
|
|
},
|
|
|
|
secondaryTokenSymbol: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: 'ABC',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const WhiteOnBlue = (args) => {
|
2020-08-18 15:53:54 +02:00
|
|
|
return (
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
width: '150px',
|
|
|
|
height: '30px',
|
|
|
|
borderRadius: '4px',
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
background: 'linear-gradient(90deg, #037DD6 0%, #1098FC 101.32%)',
|
|
|
|
}}
|
|
|
|
>
|
2022-02-21 15:13:11 +01:00
|
|
|
<ExchangeRateDisplay {...args} />
|
2020-08-18 15:53:54 +02:00
|
|
|
</div>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
};
|
2022-02-21 15:13:11 +01:00
|
|
|
|
|
|
|
WhiteOnBlue.argTypes = {
|
|
|
|
primaryTokenValue: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: '2000000000000000000',
|
|
|
|
},
|
|
|
|
primaryTokenDecimals: {
|
|
|
|
control: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
|
|
|
defaultValue: 18,
|
|
|
|
},
|
|
|
|
primaryTokenSymbol: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: 'ETH',
|
|
|
|
},
|
|
|
|
secondaryTokenValue: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: '200000000000000000',
|
|
|
|
},
|
|
|
|
secondaryTokenDecimals: {
|
|
|
|
control: {
|
|
|
|
type: 'number',
|
|
|
|
},
|
|
|
|
defaultValue: 18,
|
|
|
|
},
|
|
|
|
secondaryTokenSymbol: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
defaultValue: 'ABC',
|
|
|
|
},
|
|
|
|
};
|