1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/ui/pages/swaps/build-quote/build-quote.stories.js
Nidhi Kumari 2e6f579ee5
Converted BuildQuote story to use controls and action argType (#15234)
* added build quote component

* fixed updated test-data to use Rinkeby instead of ropsten
2022-07-22 12:14:35 +05:30

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';