1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

creating story for multilayer-fee-message & nft-options (#19567)

* creating story for multilayer fee message

* add story for nftoptions

* lint fixed

* suggestion

* Updating function props to actions in storybook

---------

Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
rohit kerkar 2023-06-21 02:13:27 +05:30 committed by GitHub
parent 9acd4b4ea1
commit 4a8a4aa01b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,35 @@
import React from 'react';
import MultilayerFeeMessage from './multi-layer-fee-message';
export default {
title: 'Components/App/MultilayerFeeMessage',
component: MultilayerFeeMessage,
argTypes: {
transaction: {
control: 'object',
},
layer2fee: {
control: 'text',
},
nativeCurrency: {
control: 'text',
},
plainStyle: {
control: 'boolean',
},
},
args: {
transaction: {
txParams: {
value: '0x123456789',
},
},
layer2fee: '0x987654321',
nativeCurrency: 'ETH',
plainStyle: true,
},
};
export const DefaultStory = (args) => <MultilayerFeeMessage {...args} />;
DefaultStory.storyName = 'Default';

View File

@ -0,0 +1,19 @@
import React from 'react';
import NftOptions from './nft-options';
export default {
title: 'Components/App/NftOptions',
component: NftOptions,
argTypes: {
onRemove: {
action: 'onRemove',
},
onViewOnOpensea: {
action: 'onViewOnOpensea',
},
},
};
export const DefaultStory = (args) => <NftOptions {...args} />;
DefaultStory.storyName = 'Default';