1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/pages/send/send-footer/send-footer.stories.js

34 lines
772 B
JavaScript
Raw Normal View History

2021-09-13 23:05:17 +02:00
import React from 'react';
import SendFooter from './send-footer.component';
export default {
title: 'Pages/Send/SendFooter',
argTypes: {
clearSend: { action: 'clearSend' },
sign: { action: 'sign' },
from: { control: 'object' },
disabled: { control: 'boolean' },
mostRecentOverviewPage: { control: 'text' },
sendErrors: { control: 'object' },
history: { action: 'history' },
addToAddressBookIfNew: { action: 'addToAddressBookIfNew' },
resetSendState: { action: 'resetSendState' },
},
2021-09-13 23:05:17 +02:00
};
export const DefaultStory = (args) => {
return <SendFooter {...args} />;
2021-09-13 23:05:17 +02:00
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
from: {
address: '',
},
disabled: false,
mostRecentOverviewPage: '',
sendErrors: {},
};