mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-02 06:07:06 +01:00
f5c95860f7
Co-authored-by: VSaric <vladimir.saric@consensys.net> Co-authored-by: Vladimir Saric <92527393+VSaric@users.noreply.github.com>
41 lines
816 B
JavaScript
41 lines
816 B
JavaScript
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: 'text' },
|
|
},
|
|
siteOrigin: {
|
|
control: { type: 'text' },
|
|
},
|
|
passTheErrorText: {
|
|
action: 'passTheErrorText',
|
|
},
|
|
decimals: {
|
|
control: 'text',
|
|
},
|
|
},
|
|
args: {
|
|
tokenName: 'DAI',
|
|
currentTokenBalance: 200.12,
|
|
dappProposedValue: '7',
|
|
siteOrigin: 'Uniswap.org',
|
|
decimals: '4',
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => {
|
|
return <CustomSpendingCap {...args} />;
|
|
};
|
|
|
|
DefaultStory.storyName = 'Default';
|