feature: add select field in Send View fees
This commit is contained in:
parent
2199c987e1
commit
e8340482e9
|
@ -1,5 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React, { PureComponent, Fragment } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { InputLabelComponent } from '../components/input-label';
|
import { InputLabelComponent } from '../components/input-label';
|
||||||
|
@ -140,7 +140,6 @@ export class SendView extends PureComponent<Props, State> {
|
||||||
inputType='textarea'
|
inputType='textarea'
|
||||||
placeholder='Enter a text here'
|
placeholder='Enter a text here'
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ShowFeeButton
|
<ShowFeeButton
|
||||||
onClick={() => this.setState(state => ({ showFee: !state.showFee }))
|
onClick={() => this.setState(state => ({ showFee: !state.showFee }))
|
||||||
}
|
}
|
||||||
|
@ -151,15 +150,29 @@ export class SendView extends PureComponent<Props, State> {
|
||||||
/>
|
/>
|
||||||
</ShowFeeButton>
|
</ShowFeeButton>
|
||||||
{showFee && (
|
{showFee && (
|
||||||
<Fragment>
|
<RowComponent alignItems='flex-end' justifyContent='space-between'>
|
||||||
<InputLabelComponent value='Fee' />
|
<ColumnComponent width='74%'>
|
||||||
<InputComponent
|
<InputLabelComponent value='Fee' />
|
||||||
type='number'
|
<InputComponent
|
||||||
onChange={this.handleChange('fee')}
|
type='number'
|
||||||
value={String(fee)}
|
onChange={this.handleChange('fee')}
|
||||||
placeholder='kjnasG86431nvtsa…ks345jbhbdsDGvds'
|
value={String(fee)}
|
||||||
/>
|
placeholder='kjnasG86431nvtsa…ks345jbhbdsDGvds'
|
||||||
</Fragment>
|
/>
|
||||||
|
</ColumnComponent>
|
||||||
|
<ColumnComponent width='25%'>
|
||||||
|
<SelectComponent
|
||||||
|
onChange={this.handleChange('from')}
|
||||||
|
value={from}
|
||||||
|
options={[
|
||||||
|
{
|
||||||
|
label: 'Medium',
|
||||||
|
value: 'medium',
|
||||||
|
},
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</ColumnComponent>
|
||||||
|
</RowComponent>
|
||||||
)}
|
)}
|
||||||
</FormWrapper>
|
</FormWrapper>
|
||||||
<SendWrapper>
|
<SendWrapper>
|
||||||
|
|
Loading…
Reference in New Issue