2022-10-05 21:48:35 +02:00
|
|
|
import React from 'react';
|
2022-08-24 19:12:52 +02:00
|
|
|
import ContractDetailsModal from './contract-details-modal';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Components/App/Modals/ContractDetailsModal',
|
2023-01-20 20:27:46 +01:00
|
|
|
|
2022-08-24 19:12:52 +02:00
|
|
|
argTypes: {
|
2022-10-05 21:48:35 +02:00
|
|
|
onClose: {
|
|
|
|
action: 'onClose',
|
2022-08-24 19:12:52 +02:00
|
|
|
},
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
origin: {
|
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
siteImage: {
|
2022-08-24 19:12:52 +02:00
|
|
|
control: {
|
|
|
|
type: 'text',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
args: {
|
|
|
|
tokenName: 'DAI',
|
2022-10-05 21:48:35 +02:00
|
|
|
tokenAddress: '0x6B175474E89094C44Da98b954EedeAC495271d0F',
|
|
|
|
toAddress: '0x9bc5baf874d2da8d216ae9f137804184ee5afef4',
|
|
|
|
chainId: '0x3',
|
|
|
|
rpcPrefs: {},
|
|
|
|
origin: 'https://metamask.github.io',
|
|
|
|
siteImage: 'https://metamask.github.io/test-dapp/metamask-fox.svg',
|
2022-08-24 19:12:52 +02:00
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const DefaultStory = (args) => {
|
2022-10-05 21:48:35 +02:00
|
|
|
return <ContractDetailsModal {...args} />;
|
2022-08-24 19:12:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
DefaultStory.storyName = 'Default';
|