1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-27 12:56:01 +01:00
metamask-extension/ui/pages/send/send-content/send-hex-data-row/send-hex-data-row.stories.js
dragana8 76bfc399b6
convert knobs and actions to controls / args (#13203)
* changed knobs

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

25 lines
538 B
JavaScript

import React from 'react';
import SendHexDataRow from './send-hex-data-row.component';
export default {
title: 'Pages/Send/SendContent/SendHexDataRow',
id: __filename,
argTypes: {
inError: { control: 'boolean' },
updateSendHexData: { action: 'updateSendHexData' },
},
};
export const DefaultStory = (args) => {
return (
<div style={{ width: 450 }}>
<SendHexDataRow {...args} updateSendHexData={() => null} />
</div>
);
};
DefaultStory.storyName = 'Default';
DefaultStory.args = {
inError: false,
};