1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 10:30:04 +01:00
metamask-extension/ui/components/app/confirm-title/confirm-title.stories.js

55 lines
1.0 KiB
JavaScript
Raw Normal View History

import React from 'react';
import README from './README.mdx';
import ConfirmTitle from './confirm-title';
export default {
title: 'Components/App/ConfirmTitle',
component: ConfirmTitle,
parameters: {
docs: {
page: README,
},
},
argTypes: {
txData: 'object',
hexTransactionAmount: 'string',
title: 'string',
},
args: {
txData: {
txParams: {},
type: 'transfer',
},
hexTransactionAmount: '0x9184e72a000',
title: undefined,
},
};
export const DefaultStory = (args) => {
return <ConfirmTitle {...args} />;
};
DefaultStory.storyName = 'Default';
export const ContractInteractionStory = (args) => {
return <ConfirmTitle {...args} />;
};
ContractInteractionStory.storyName = 'ContractInteraction';
ContractInteractionStory.args = {
txData: {
txParams: {},
type: 'contractInteraction',
},
};
export const CustomTitleStory = (args) => {
return <ConfirmTitle {...args} />;
};
CustomTitleStory.storyName = 'CustomTitle';
CustomTitleStory.args = {
title: 'Any custom title passed',
};