From 6f8e2b1ad94fd70c3be976ef88179dc00ceebb45 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 9 Oct 2018 14:23:48 -0230 Subject: Clean up for advanced gas tab customization changes. --- .../tests/advanced-tab-content-component.test.js | 4 ---- .../gas-modal-page-container.component.js | 28 ++++++++++------------ 2 files changed, 13 insertions(+), 19 deletions(-) (limited to 'ui') diff --git a/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js b/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js index 1489c7696..14863e59d 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js +++ b/ui/app/components/gas-customization/gas-modal-page-container/advanced-tab-content/tests/advanced-tab-content-component.test.js @@ -68,10 +68,6 @@ describe('AdvancedTabContent Component', function () { 11, propsMethodSpies.updateCustomGasPrice, 23456, propsMethodSpies.updateCustomGasLimit, ]) }) - - it('should call renderGasEditRows with the expected params', () => { - - }) }) describe('renderDataSummary()', () => { 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 07e55a1f0..88ef921c5 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 @@ -52,32 +52,30 @@ export default class GasModalPageContainer extends Component { updateCustomGasLimit={convertThenUpdateCustomGasLimit} customGasPrice={customGasPrice} customGasLimit={customGasLimit} - timeRemaining={'1 min 31 sec'} + timeRemaining="1 min 31 sec" totalFee={newTotalFiat} /> ) } renderInfoRows (newTotalFiat, newTotalEth, sendAmount, transactionFee) { - const baseClassName = 'gas-modal-content__info-row' - return (
-
-
- {`Send Amount`} - {sendAmount} +
+
+ {this.context.t('sendAmount')} + {sendAmount}
-
- {`Transaction Fee`} - {transactionFee} +
+ {this.context.t('transactionFee')} + {transactionFee}
-
- {`New Total`} - {newTotalEth} +
+ {this.context.t('newTotal')} + {newTotalEth}
-
- {newTotalFiat} +
+ {newTotalFiat}
-- cgit