aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-09-10 00:18:34 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-04 11:36:04 +0800
commitd07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9 (patch)
treea0f91accbaacd2a420e87f542aa06b42cc9d7792
parent0a7dfcd55d02a7204d8f0773ff9d91f325aabea8 (diff)
downloadtangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.gz
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.bz2
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.lz
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.xz
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.zst
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.zip
Improvements to propdefaults in button-group.component and basic-tab-content.component
-rw-r--r--ui/app/components/button-group/button-group.component.js3
-rw-r--r--ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/button-group/button-group.component.js b/ui/app/components/button-group/button-group.component.js
index 905bbe9d2..440b3c4f7 100644
--- a/ui/app/components/button-group/button-group.component.js
+++ b/ui/app/components/button-group/button-group.component.js
@@ -14,12 +14,13 @@ export default class ButtonGroup extends PureComponent {
static defaultProps = {
className: 'button-group',
+ defaultActiveButtonIndex: 0,
}
state = {
activeButtonIndex: this.props.noButtonActiveByDefault
? null
- : this.props.defaultActiveButtonIndex || 0,
+ : this.props.defaultActiveButtonIndex,
}
handleButtonClick (activeButtonIndex) {
diff --git a/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js b/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js
index 99ef28b5e..164da4a32 100644
--- a/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js
+++ b/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js
@@ -16,11 +16,11 @@ export default class BasicTabContent extends Component {
<div className="basic-tab-content">
<div className="basic-tab-content__title">Suggest gas fee increases</div>
<GasPriceButtonGroup
- {...this.props.gasPriceButtonGroupProps}
className="gas-price-button-group"
noButtonActiveByDefault={true}
showCheck={true}
handleGasPriceSelection={(newPrice) => console.log('New Price:', newPrice)}
+ {...this.props.gasPriceButtonGroupProps}
/>
</div>
)