1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 01:47:00 +01:00

Use readOnly (#7995)

This commit is contained in:
ricky 2020-02-06 14:34:23 -05:00 committed by GitHub
parent d368464b7b
commit fbfaa6eb10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ export default class AmountMaxButton extends Component {
return (
<div className="send-v2__amount-max" onClick={buttonDataLoading || inError ? null : this.onMaxClick}>
<input type="checkbox" checked={maxModeOn} />
<input type="checkbox" checked={maxModeOn} readOnly />
<div className={classnames('send-v2__amount-max__button', { 'send-v2__amount-max__button__disabled': buttonDataLoading || inError })}>
{this.context.t('max')}
</div>