A Metamask fork with Infura removed and default networks editable
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
ciphermask/ui/components/app/custom-spending-cap/custom-spending-cap.stories.js

36 lines
731 B

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' },
},
onEdit: {
action: 'onEdit',
},
},
args: {
tokenName: 'DAI',
currentTokenBalance: 200.12,
dappProposedValue: 7,
siteOrigin: 'Uniswap.org',
},
};
export const DefaultStory = (args) => {
return <CustomSpendingCap {...args} />;
};
DefaultStory.storyName = 'Default';