aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-gas-row
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-04-27 08:38:14 +0800
committerDan <danjm.com@gmail.com>2018-04-27 10:46:11 +0800
commit91c201aa72581a59a0d2ef73a225b1768584dea7 (patch)
tree00782275e57c568fff16e289002a6c3a91f3c81e /ui/app/components/send_/send-content/send-gas-row
parent8ff7806f1b471a90fa3f45ebc10f0f4452ade541 (diff)
downloadtangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.gz
tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.tar.zst
tangerine-wallet-browser-91c201aa72581a59a0d2ef73a225b1768584dea7.zip
Lint fixes and alphabetization for i3725-refactor-send-component
Diffstat (limited to 'ui/app/components/send_/send-content/send-gas-row')
-rw-r--r--ui/app/components/send_/send-content/send-gas-row/send-gas-row.component.js17
1 files changed, 10 insertions, 7 deletions
diff --git a/ui/app/components/send_/send-content/send-gas-row/send-gas-row.component.js b/ui/app/components/send_/send-content/send-gas-row/send-gas-row.component.js
index 056a04aae..65dc6ad93 100644
--- a/ui/app/components/send_/send-content/send-gas-row/send-gas-row.component.js
+++ b/ui/app/components/send_/send-content/send-gas-row/send-gas-row.component.js
@@ -8,20 +8,23 @@ export default class SendGasRow extends Component {
static propTypes = {
closeFromDropdown: PropTypes.func,
conversionRate: PropTypes.number,
+ convertedCurrency: PropTypes.string,
from: PropTypes.string,
fromAccounts: PropTypes.array,
fromDropdownOpen: PropTypes.bool,
+ gasLoadingError: PropTypes.bool,
+ gasTotal: PropTypes.string,
openFromDropdown: PropTypes.func,
+ showCustomizeGasModal: PropTypes.bool,
tokenContract: PropTypes.object,
updateSendFrom: PropTypes.func,
updateSendTokenBalance: PropTypes.func,
- gasLoadingError: PropTypes.bool,
};
async handleFromChange (newFrom) {
const {
- updateSendFrom,
tokenContract,
+ updateSendFrom,
updateSendTokenBalance,
} = this.props
@@ -36,22 +39,22 @@ export default class SendGasRow extends Component {
const {
conversionRate,
convertedCurrency,
- showCustomizeGasModal,
- gasTotal,
gasLoadingError,
+ gasTotal,
+ showCustomizeGasModal,
} = this.props
return (
<SendRowWrapper label={`${this.context.t('gasFee')}:`}>
<GasFeeDisplay
- gasTotal={gasTotal}
conversionRate={conversionRate}
convertedCurrency={convertedCurrency}
- onClick={() => showCustomizeGasModal()}
gasLoadingError={gasLoadingError}
+ gasTotal={gasTotal}
+ onClick={() => showCustomizeGasModal()}
/>
</SendRowWrapper>
- );
+ )
}
}