mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
37 lines
731 B
JavaScript
37 lines
731 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: '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';
|