You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
783 B
35 lines
783 B
import React from 'react';
|
|
import { shuffle } from 'lodash';
|
|
import testData from '../../../../.storybook/test-data';
|
|
import BuildQuote from './build-quote';
|
|
|
|
const tokenValuesArr = shuffle(testData.metamask.tokenList);
|
|
|
|
export default {
|
|
title: 'Pages/Swaps/BuildQuote',
|
|
id: __filename,
|
|
argTypes: {
|
|
ethBalance: {
|
|
control: { type: 'text' },
|
|
},
|
|
selectedAccountAddress: {
|
|
control: { type: 'text' },
|
|
},
|
|
shuffledTokensList: { control: 'object' },
|
|
},
|
|
args: {
|
|
ethBalance: '0x8',
|
|
selectedAccountAddress: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
|
|
shuffledTokensList: tokenValuesArr,
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
return (
|
|
<>
|
|
<BuildQuote {...args} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|
|
|