diff --git a/ui/pages/swaps/exchange-rate-display/exchange-rate-display.stories.js b/ui/pages/swaps/exchange-rate-display/exchange-rate-display.stories.js index 1b859c5f4..d66be935a 100644 --- a/ui/pages/swaps/exchange-rate-display/exchange-rate-display.stories.js +++ b/ui/pages/swaps/exchange-rate-display/exchange-rate-display.stories.js @@ -1,5 +1,4 @@ import React from 'react'; -import { text, number } from '@storybook/addon-knobs'; import ExchangeRateDisplay from './exchange-rate-display'; export default { @@ -7,22 +6,50 @@ export default { id: __filename, }; -export const DefaultStory = () => { - return ( - - ); +export const DefaultStory = (args) => { + return ; }; DefaultStory.storyName = 'Default'; -export const WhiteOnBlue = () => { +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) => { return (
{ background: 'linear-gradient(90deg, #037DD6 0%, #1098FC 101.32%)', }} > - +
); }; + +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', + }, +};