mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Adding story for CancelButton (#19566)
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
This commit is contained in:
parent
4a8a4aa01b
commit
639de748fb
29
ui/components/app/cancel-button/cancel-buitton.stories.js
Normal file
29
ui/components/app/cancel-button/cancel-buitton.stories.js
Normal file
@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
import CancelButton from './cancel-button';
|
||||
|
||||
export default {
|
||||
title: 'Components/App/CancelButton',
|
||||
component: CancelButton,
|
||||
argTypes: {
|
||||
transaction: {
|
||||
control: 'object',
|
||||
},
|
||||
cancelTransaction: {
|
||||
control: 'cancelTransaction',
|
||||
},
|
||||
detailsModal: {
|
||||
control: 'boolean',
|
||||
},
|
||||
},
|
||||
args: {
|
||||
detailsModal: true,
|
||||
transaction: {
|
||||
id: '12345',
|
||||
status: 'pending',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const DefaultStory = (args) => <CancelButton {...args} />;
|
||||
|
||||
DefaultStory.storyName = 'Default';
|
Loading…
Reference in New Issue
Block a user