aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2018-12-11 07:40:14 +0800
committerDan Finlay <dan@danfinlay.com>2018-12-11 07:40:14 +0800
commit3bfd4d1524dd8f7f6ede5c62085af52105336ec1 (patch)
treef520b02380d3a258a8cc5a7595003518ed0d5c0d /ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js
parent14bd5997902fd3129ae00a8da7d43dd3b075e9ff (diff)
parent1fbdce8916151df2b31eebc5de29a1365e5dadff (diff)
downloadtangerine-wallet-browser-3bfd4d1524dd8f7f6ede5c62085af52105336ec1.tar.gz
tangerine-wallet-browser-3bfd4d1524dd8f7f6ede5c62085af52105336ec1.tar.zst
tangerine-wallet-browser-3bfd4d1524dd8f7f6ede5c62085af52105336ec1.zip
Merge branch 'develop' into i5846-ProviderCrashes
Diffstat (limited to 'ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js')
-rw-r--r--ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js b/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js
index be91bef0f..64c2be353 100644
--- a/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js
+++ b/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.component.js
@@ -35,6 +35,9 @@ export default class GasModalPageContainer extends Component {
PropTypes.string,
PropTypes.number,
]),
+ customPriceIsSafe: PropTypes.bool,
+ isSpeedUp: PropTypes.bool,
+ disableSave: PropTypes.bool,
}
state = {}
@@ -69,6 +72,8 @@ export default class GasModalPageContainer extends Component {
currentTimeEstimate,
insufficientBalance,
gasEstimatesLoading,
+ customPriceIsSafe,
+ isSpeedUp,
}) {
const { transactionFee } = this.props
return (
@@ -83,6 +88,8 @@ export default class GasModalPageContainer extends Component {
gasChartProps={gasChartProps}
insufficientBalance={insufficientBalance}
gasEstimatesLoading={gasEstimatesLoading}
+ customPriceIsSafe={customPriceIsSafe}
+ isSpeedUp={isSpeedUp}
/>
)
}
@@ -153,6 +160,7 @@ export default class GasModalPageContainer extends Component {
onSubmit,
customModalGasPriceInHex,
customModalGasLimitInHex,
+ disableSave,
...tabProps
} = this.props
@@ -162,7 +170,7 @@ export default class GasModalPageContainer extends Component {
title={this.context.t('customGas')}
subtitle={this.context.t('customGasSubTitle')}
tabsComponent={this.renderTabs(infoRowProps, tabProps)}
- disabled={tabProps.insufficientBalance}
+ disabled={disableSave}
onCancel={() => cancelAndClose()}
onClose={() => cancelAndClose()}
onSubmit={() => {