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',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-03-30 22:21:27 +02:00
|
|
|
argTypes: {
|
2022-05-09 19:47:06 +02:00
|
|
|
aggregators: { control: 'array' },
|
2022-03-30 22:21:27 +02:00
|
|
|
},
|
|
|
|
args: {
|
2022-05-09 19:47:06 +02:00
|
|
|
aggregators1: [
|
2022-03-30 22:21:27 +02:00
|
|
|
'Aave',
|
|
|
|
'Bancor',
|
|
|
|
'CMC',
|
|
|
|
'Crypto.com',
|
|
|
|
'CoinGecko',
|
|
|
|
'1inch',
|
|
|
|
'Paraswap',
|
|
|
|
'PMM',
|
|
|
|
'Synthetix',
|
|
|
|
'Zapper',
|
|
|
|
'Zerion',
|
|
|
|
'0x',
|
|
|
|
],
|
2022-05-09 19:47:06 +02:00
|
|
|
aggregators2: ['Aave', 'Bancor'],
|
2022-03-30 22:21:27 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const Template = (args) => {
|
|
|
|
return (
|
|
|
|
<Box display={DISPLAY.GRID}>
|
2022-05-09 19:47:06 +02:00
|
|
|
<DetectedTokenAggregators aggregators={args.aggregators1} />
|
|
|
|
<DetectedTokenAggregators aggregators={args.aggregators2} />
|
2022-03-30 22:21:27 +02:00
|
|
|
</Box>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = Template.bind({});
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|