1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +01:00
metamask-extension/ui/pages/send/send-footer/send-footer.stories.js
dragana8 76bfc399b6
convert knobs and actions to controls / args (#13203)
* changed knobs

* review updates
2022-01-13 08:06:27 -03:30

34 lines
789 B
JavaScript

import React from 'react';
import SendFooter from './send-footer.component';
export default {
title: 'Pages/Send/SendFooter',
id: __filename,
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' },
},
};
export const DefaultStory = (args) => {
return <SendFooter {...args} />;
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
from: {
address: '',
},
disabled: false,
mostRecentOverviewPage: '',
sendErrors: {},
};