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:
parent
1e5c0078dd
commit
be0508d41e
@ -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…
Reference in New Issue
Block a user