2022-07-22 08:44:35 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { shuffle } from 'lodash';
|
|
|
|
import testData from '../../../../.storybook/test-data';
|
|
|
|
import BuildQuote from './build-quote';
|
2020-10-06 20:28:38 +02:00
|
|
|
|
2022-07-22 08:44:35 +02:00
|
|
|
const tokenValuesArr = shuffle(testData.metamask.tokenList);
|
2020-10-06 20:28:38 +02:00
|
|
|
|
|
|
|
export default {
|
2021-12-01 20:27:57 +01:00
|
|
|
title: 'Pages/Swaps/BuildQuote',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-07-22 08:44:35 +02:00
|
|
|
argTypes: {
|
|
|
|
ethBalance: {
|
|
|
|
control: { type: 'text' },
|
|
|
|
},
|
|
|
|
selectedAccountAddress: {
|
|
|
|
control: { type: 'text' },
|
|
|
|
},
|
|
|
|
shuffledTokensList: { control: 'object' },
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
ethBalance: '0x8',
|
|
|
|
selectedAccountAddress: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
|
|
|
|
shuffledTokensList: tokenValuesArr,
|
|
|
|
},
|
2021-02-04 19:15:23 +01:00
|
|
|
};
|
2020-10-06 20:28:38 +02:00
|
|
|
|
2022-07-22 08:44:35 +02:00
|
|
|
export const DefaultStory = (args) => {
|
2020-10-06 20:28:38 +02:00
|
|
|
return (
|
2022-03-23 20:07:29 +01:00
|
|
|
<>
|
2022-07-22 08:44:35 +02:00
|
|
|
<BuildQuote {...args} />
|
2022-03-23 20:07:29 +01:00
|
|
|
</>
|
2021-02-04 19:15:23 +01:00
|
|
|
);
|
|
|
|
};
|
2021-12-01 20:27:57 +01:00
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|