2022-09-28 21:46:29 +02:00
|
|
|
import React from 'react';
|
|
|
|
import CustomSpendingCap from './custom-spending-cap';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/App/CustomSpendingCap',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-09-28 21:46:29 +02:00
|
|
|
argTypes: {
|
|
|
|
tokenName: {
|
|
|
|
control: { type: 'text' },
|
|
|
|
},
|
|
|
|
currentTokenBalance: {
|
|
|
|
control: { type: 'number' },
|
|
|
|
},
|
|
|
|
dappProposedValue: {
|
2023-01-05 15:58:16 +01:00
|
|
|
control: { type: 'text' },
|
2022-09-28 21:46:29 +02:00
|
|
|
},
|
|
|
|
siteOrigin: {
|
|
|
|
control: { type: 'text' },
|
|
|
|
},
|
2022-11-07 19:21:38 +01:00
|
|
|
passTheErrorText: {
|
|
|
|
action: 'passTheErrorText',
|
2022-09-28 21:46:29 +02:00
|
|
|
},
|
2023-01-05 15:58:16 +01:00
|
|
|
decimals: {
|
|
|
|
control: 'text',
|
|
|
|
},
|
2022-09-28 21:46:29 +02:00
|
|
|
},
|
|
|
|
args: {
|
|
|
|
tokenName: 'DAI',
|
|
|
|
currentTokenBalance: 200.12,
|
2023-01-05 15:58:16 +01:00
|
|
|
dappProposedValue: '7',
|
2022-09-28 21:46:29 +02:00
|
|
|
siteOrigin: 'Uniswap.org',
|
2023-01-05 15:58:16 +01:00
|
|
|
decimals: '4',
|
2022-09-28 21:46:29 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => {
|
|
|
|
return <CustomSpendingCap {...args} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|