1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/ui/pages/swaps/build-quote/build-quote.stories.js

36 lines
766 B
JavaScript
Raw Normal View History

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
const tokenValuesArr = shuffle(testData.metamask.tokenList);
2020-10-06 20:28:38 +02:00
export default {
title: 'Pages/Swaps/BuildQuote',
argTypes: {
ethBalance: {
control: { type: 'text' },
},
selectedAccountAddress: {
control: { type: 'text' },
},
shuffledTokensList: { control: 'object' },
},
args: {
ethBalance: '0x8',
selectedAccountAddress: '0xb19ac54efa18cc3a14a5b821bfec73d284bf0c5e',
shuffledTokensList: tokenValuesArr,
},
};
2020-10-06 20:28:38 +02:00
export const DefaultStory = (args) => {
2020-10-06 20:28:38 +02:00
return (
<>
<BuildQuote {...args} />
</>
);
};
DefaultStory.storyName = 'Default';