aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/button-group
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 /ui/app/components/button-group
parent0a7dfcd55d02a7204d8f0773ff9d91f325aabea8 (diff)
downloadtangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.gz
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.tar.zst
tangerine-wallet-browser-d07d40cf7cf013bd9b9968fa6bc37bcfd1367cf9.zip
Improvements to propdefaults in button-group.component and basic-tab-content.component
Diffstat (limited to 'ui/app/components/button-group')
-rw-r--r--ui/app/components/button-group/button-group.component.js3
1 files changed, 2 insertions, 1 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) {