2022-03-30 22:21:27 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { DISPLAY } from '../../../../helpers/constants/design-system';
|
|
|
|
|
|
|
|
import Box from '../../../ui/box';
|
|
|
|
import DetectedTokenAggregators from './detected-token-aggregators';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/App/DetectedToken/DetectedTokenAggregators',
|
|
|
|
id: __filename,
|
|
|
|
argTypes: {
|
2022-06-28 15:11:19 +02:00
|
|
|
aggregatorsList: { control: 'array' },
|
2022-03-30 22:21:27 +02:00
|
|
|
},
|
|
|
|
args: {
|
2022-06-28 15:11:19 +02:00
|
|
|
aggregatorsList1: [
|
2022-03-30 22:21:27 +02:00
|
|
|
'Aave',
|
|
|
|
'Bancor',
|
|
|
|
'CMC',
|
|
|
|
'Crypto.com',
|
|
|
|
'CoinGecko',
|
|
|
|
'1inch',
|
|
|
|
'Paraswap',
|
|
|
|
'PMM',
|
|
|
|
'Synthetix',
|
|
|
|
'Zapper',
|
|
|
|
'Zerion',
|
|
|
|
'0x',
|
|
|
|
],
|
2022-06-28 15:11:19 +02:00
|
|
|
aggregatorsList2: ['Aave', 'Bancor'],
|
2022-03-30 22:21:27 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const Template = (args) => {
|
|
|
|
return (
|
|
|
|
<Box display={DISPLAY.GRID}>
|
2022-06-28 15:11:19 +02:00
|
|
|
<DetectedTokenAggregators aggregatorsList={args.aggregatorsList1} />
|
|
|
|
<DetectedTokenAggregators aggregatorsList={args.aggregatorsList2} />
|
2022-03-30 22:21:27 +02:00
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = Template.bind({});
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|