1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-12 04:37:13 +01:00
metamask-extension/ui/components/app/modals/contract-details-modal/contract-details-modal.stories.js

51 lines
919 B
JavaScript
Raw Normal View History

2022-10-05 21:48:35 +02:00
import React from 'react';
import ContractDetailsModal from './contract-details-modal';
export default {
title: 'Components/App/Modals/ContractDetailsModal',
argTypes: {
2022-10-05 21:48:35 +02:00
onClose: {
action: 'onClose',
},
tokenName: {
control: {
type: 'text',
},
},
2022-10-05 21:48:35 +02:00
tokenAddress: {
control: {
type: 'text',
},
},
toAddress: {
control: {
type: 'text',
},
},
chainId: {
control: {
type: 'text',
},
},
rpcPrefs: {
control: {
type: 'object',
},
},
},
args: {
tokenName: 'DAI',
2022-10-05 21:48:35 +02:00
tokenAddress: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
toAddress: '0x9bc5baf874d2da8d216ae9f137804184ee5afef4',
chainId: '0x3',
rpcPrefs: {},
},
};
export const DefaultStory = (args) => {
2022-10-05 21:48:35 +02:00
return <ContractDetailsModal {...args} />;
};
DefaultStory.storyName = 'Default';