From a0297c79be53ee0d2c32a575cae2a18b49ee8aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Chavarr=C3=ADa?= Date: Mon, 28 Jun 2021 09:19:59 -0600 Subject: [PATCH] format: remove comments and fix translations typos --- src/common/translations/pt-BR.json | 6 +++--- src/pages/wallet/transfer.js | 9 --------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/common/translations/pt-BR.json b/src/common/translations/pt-BR.json index bfe4bfb7..37cc614c 100644 --- a/src/common/translations/pt-BR.json +++ b/src/common/translations/pt-BR.json @@ -67,9 +67,9 @@ "slideConfirm": "Deslize para confirmar", "balance": "Saldo", "unavailableAddress": "O endereço da carteira digitado não é válido", - "advanced": "Opciones Avanzadas", - "gasPrice": "Preço da Gás", - "gasLimit": "Limite de Gás", + "advanced": "Opções avançadas", + "gasPrice": "Preço Gás", + "gasLimit": "Limite Gás", "units": "Unidades" }, "add": { diff --git a/src/pages/wallet/transfer.js b/src/pages/wallet/transfer.js index 54f7d109..9c426927 100644 --- a/src/pages/wallet/transfer.js +++ b/src/pages/wallet/transfer.js @@ -341,10 +341,7 @@ class Transfer extends Component { const { symbol, type } = this.coin; if (prices && prices !== curPrices) { - // const { customFee, feeSymbol } = this.state; - // const customFeeValue = common.getCoinValue(customFee, feeSymbol, type, currency, prices); const amountPlaceholderText = Transfer.generateAmountPlaceholderText(symbol, type, currency, prices); - // this.setState({ customFeeValue amountPlaceholderText }); this.setState({ amountPlaceholderText }); } } @@ -920,11 +917,6 @@ class Transfer extends Component { this.setState({ feeSymbol, amountPlaceholderText }); } - // resetConfirm() { - // this.setState({ isConfirm: false }); - // this.confirmSlider.reset(); - // } - showInvalidAddressNotification() { const { addNotification } = this.props; const notification = createErrorNotification( @@ -988,7 +980,6 @@ class Transfer extends Component { symbol, type, address, needFetch: true, }); } - // this.resetConfirm(); } }