mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-10 02:55:41 +00:00
edda9f71ea
* Initial crack at simple only gas slider component. * Work on advanced component. Refactor redux and components to specify gas limit vs price. * Convert fee summary to a render cbesque thing. * Rework responsive columns. * Remove force offline button. * Tweak styles. * Fix tscheck issues, remove unneeded prop. * Fix references to GasField * Gas slider in lite send. * Make gas slider network-aware for symbol and price calculation.
22 lines
606 B
TypeScript
22 lines
606 B
TypeScript
import React from 'react';
|
|
import { GasLimitFieldFactory } from './GasLimitFieldFactory';
|
|
import translate from 'translations';
|
|
import { Aux } from 'components/ui';
|
|
|
|
export const GasLimitField: React.SFC<{}> = () => (
|
|
<Aux>
|
|
<label>{translate('TRANS_gas')} </label>
|
|
<GasLimitFieldFactory
|
|
withProps={({ gasLimit: { raw, value }, onChange, readOnly }) => (
|
|
<input
|
|
className={`form-control ${!!value ? 'is-valid' : 'is-invalid'}`}
|
|
type="text"
|
|
readOnly={!!readOnly}
|
|
value={raw}
|
|
onChange={onChange}
|
|
/>
|
|
)}
|
|
/>
|
|
</Aux>
|
|
);
|