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

Add send-hex-data-row to Storybook (#12085)

* send-hex-data

* id filename

* lint
This commit is contained in:
Etienne Dusseault 2021-10-15 09:02:13 -03:00 committed by GitHub
parent 1e5c0078dd
commit be0508d41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 4 deletions

View File

@ -1278,10 +1278,9 @@ const state = {
balance: '0x0', balance: '0x0',
details: null, details: null,
}, },
stage: 'ADD_RECIPIENT', gas: { error: 'gas' },
amount: '3782dace9d900000', amount: {
gas: { error: 'amount',
price: null,
}, },
}, },
confirmTransaction: { confirmTransaction: {

View File

@ -0,0 +1,19 @@
import React from 'react';
import { boolean } from '@storybook/addon-knobs';
import SendHexDataRow from './send-hex-data-row.component';
export default {
title: 'SendHexDataRow',
id: __filename,
};
export const SendHexDataRowComponent = () => {
return (
<div style={{ width: 450 }}>
<SendHexDataRow
inError={boolean('In Error', false)}
updateSendHexData={() => null}
/>
</div>
);
};