mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
* added storybook test runner * added test runner in ci * updated test for ci and fixed lint error * updated lavamoat policy * updated test command * updated playwright * changed command to storybook;ci * updated command * updated instance for test-storybook * updated playwright * added playwright step * replaced concurrently with start-server-and-test * updated the static storybook directory * replaced first with last * updated lock file * replaced first with last * updated test-storybook with maxworkers * updated .depchechrc * updated yml * removed id from banner base * replaced broken stories with .stories-to-do.js extesnsion * updated token allowance story * removed duplicacies from yarn * fixed lavamoat * removed filename comment * updated links for docs * fixed file extension for stories * updated path for stories.json * updated stories.json path * yarn updated * updated stories * updated yarn * updated wait on
141 lines
3.0 KiB
JavaScript
141 lines
3.0 KiB
JavaScript
import React from 'react';
|
|
import { TokenStandard } from '../../../../shared/constants/transaction';
|
|
import ConfirmApproveContent from '.';
|
|
|
|
export default {
|
|
title: 'Pages/ConfirmApprove/ConfirmApproveContent',
|
|
|
|
component: ConfirmApproveContent,
|
|
argTypes: {
|
|
decimals: {
|
|
control: 'number',
|
|
},
|
|
tokenAmount: {
|
|
control: 'text',
|
|
},
|
|
customTokenAmount: {
|
|
control: 'text',
|
|
},
|
|
tokenSymbol: {
|
|
control: 'text',
|
|
},
|
|
siteImage: {
|
|
control: 'text',
|
|
},
|
|
showCustomizeGasModal: {
|
|
action: 'showCustomizeGasModal',
|
|
},
|
|
showEditApprovalPermissionModal: {
|
|
action: 'showEditApprovalPermissionModal',
|
|
},
|
|
origin: {
|
|
control: 'text',
|
|
},
|
|
setCustomAmount: {
|
|
action: 'setCustomAmount',
|
|
},
|
|
tokenBalance: {
|
|
control: 'text',
|
|
},
|
|
data: {
|
|
control: 'text',
|
|
},
|
|
toAddress: {
|
|
control: 'text',
|
|
},
|
|
currentCurrency: {
|
|
control: 'text',
|
|
},
|
|
nativeCurrency: {
|
|
control: 'text',
|
|
},
|
|
fiatTransactionTotal: {
|
|
control: 'text',
|
|
},
|
|
ethTransactionTotal: {
|
|
control: 'text',
|
|
},
|
|
useNonceField: {
|
|
control: 'boolean',
|
|
},
|
|
customNonceValue: {
|
|
control: 'text',
|
|
},
|
|
updateCustomNonce: {
|
|
action: 'updateCustomNonce',
|
|
},
|
|
getNextNonce: {
|
|
action: 'getNextNonce',
|
|
},
|
|
nextNonce: {
|
|
control: 'number',
|
|
},
|
|
showCustomizeNonceModal: {
|
|
action: 'showCustomizeNonceModal',
|
|
},
|
|
warning: {
|
|
control: 'text',
|
|
},
|
|
txData: {
|
|
control: 'object',
|
|
},
|
|
fromAddressIsLedger: {
|
|
control: 'boolean',
|
|
},
|
|
chainId: {
|
|
control: 'text',
|
|
},
|
|
rpcPrefs: {
|
|
control: 'object',
|
|
},
|
|
isContract: {
|
|
control: 'boolean',
|
|
},
|
|
hexTransactionTotal: {
|
|
control: 'text',
|
|
},
|
|
isMultiLayerFeeNetwork: {
|
|
control: 'boolean',
|
|
},
|
|
supportsEIP1559: {
|
|
control: 'boolean',
|
|
},
|
|
assetName: {
|
|
control: 'text',
|
|
},
|
|
tokenId: {
|
|
control: 'text',
|
|
},
|
|
assetStandard: {
|
|
control: 'text',
|
|
},
|
|
},
|
|
args: {
|
|
decimals: 16,
|
|
siteImage: 'https://metamask.github.io/test-dapp/metamask-fox.svg',
|
|
customTokenAmount: '10',
|
|
tokenAmount: '10',
|
|
origin: 'https://metamask.github.io/test-dapp/',
|
|
tokenSymbol: 'TST',
|
|
assetStandard: TokenStandard.ERC20,
|
|
tokenImage: 'https://metamask.github.io/test-dapp/metamask-fox.svg',
|
|
tokenBalance: '15',
|
|
data: '0x095ea7b30000000000000000000000009bc5baf874d2da8d216ae9f137804184ee5afef40000000000000000000000000000000000000000000000000000000000011170',
|
|
toAddress: '0x9bc5baf874d2da8d216ae9f137804184ee5afef4',
|
|
currentCurrency: 'TST',
|
|
nativeCurrency: 'ETH',
|
|
ethTransactionTotal: '20',
|
|
fiatTransactionTotal: '10',
|
|
useNonceField: true,
|
|
nextNonce: 1,
|
|
customNonceValue: '2',
|
|
chainId: '1337',
|
|
rpcPrefs: {},
|
|
isContract: true,
|
|
},
|
|
};
|
|
|
|
export const DefaultStory = (args) => <ConfirmApproveContent {...args} />;
|
|
|
|
DefaultStory.storyName = 'Default';
|