From 2dbae581ac3f9190ddd1c3457bd51b41eef8051b Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Wed, 3 Oct 2018 10:50:05 -0230 Subject: Gas price chart improvements, redesign, bug fixes, and set up to receive external data --- .../gas-modal-page-container/advanced-tab-content/index.scss | 1 - .../gas-modal-page-container/gas-modal-page-container.component.js | 3 +++ .../gas-modal-page-container/gas-modal-page-container.container.js | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/app/components/gas-customization/gas-modal-page-container') diff --git a/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/index.scss b/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/index.scss index 9c89688e2..0fc9f4578 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/index.scss +++ b/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/index.scss @@ -50,7 +50,6 @@ font-size: 12px; color: #313A5E; margin-left: 22px; - margin-bottom: 11px; } &__speed-buttons { 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 88ef921c5..ac5981ab7 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 @@ -27,6 +27,7 @@ export default class GasModalPageContainer extends Component { customModalGasPriceInHex: PropTypes.string, customModalGasLimitInHex: PropTypes.string, cancelAndClose: PropTypes.func, + transactionFee: PropTypes.string, } state = {} @@ -46,6 +47,7 @@ export default class GasModalPageContainer extends Component { customGasLimit, newTotalFiat, }) { + const { transactionFee } = this.props return ( ) diff --git a/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js b/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js index 0d8d9d8e4..9d6dd3fb5 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js +++ b/ui/app/components/gas-customization/gas-modal-page-container/gas-modal-page-container.container.js @@ -73,6 +73,7 @@ const mapStateToProps = state => { customGasPrice: calcCustomGasPrice(customModalGasPriceInHex), customGasLimit: calcCustomGasLimit(customModalGasLimitInHex), newTotalFiat, + transactionFee: addHexWEIsToRenderableFiat('0x0', customGasTotal, currentCurrency, conversionRate), gasPriceButtonGroupProps: { buttonDataLoading, defaultActiveButtonIndex: getDefaultActiveButtonIndex(gasButtonInfo, customModalGasPriceInHex), -- cgit