Skip to content

Commit

Permalink
Adding story for CancelButton (MetaMask#19566)
Browse files Browse the repository at this point in the history
Co-authored-by: georgewrmarshall <[email protected]>
  • Loading branch information
rohiiittttt and georgewrmarshall authored Jun 20, 2023
1 parent 4a8a4aa commit 639de74
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ui/components/app/cancel-button/cancel-buitton.stories.js
Original file line number Diff line number Diff line change
@@ -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';

0 comments on commit 639de74

Please sign in to comment.