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

* send-hex-data

* id filename

* lint
feature/default_network_editable
Etienne Dusseault 3 years ago committed by GitHub
parent 1e5c0078dd
commit be0508d41e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .storybook/test-data.js
  2. 19
      ui/pages/send/send-content/send-hex-data-row/send-hex-data-row.stories.js

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

@ -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>
);
};
Loading…
Cancel
Save