mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
2e6f579ee5
* added build quote component * fixed updated test-data to use Rinkeby instead of ropsten
36 lines
783 B
JavaScript
36 lines
783 B
JavaScript
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';
|