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