mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-27 04:46:10 +01:00
30 lines
563 B
JavaScript
30 lines
563 B
JavaScript
|
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';
|