diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-08-16 20:28:27 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-04 11:36:04 +0800 |
commit | 0a7dfcd55d02a7204d8f0773ff9d91f325aabea8 (patch) | |
tree | a4c7d3e219ca926f17f26d020fddc78854a23b53 /ui/app/components/button-group | |
parent | 112d18e316df312a648b8c8ac17c201314fc9ed6 (diff) | |
download | tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.tar tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.tar.gz tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.tar.bz2 tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.tar.lz tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.tar.xz tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.tar.zst tangerine-wallet-browser-0a7dfcd55d02a7204d8f0773ff9d91f325aabea8.zip |
Connect the gas-button-group component to redux and a live api.
Diffstat (limited to 'ui/app/components/button-group')
-rw-r--r-- | ui/app/components/button-group/button-group.component.js | 5 |
1 files changed, 4 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 f99f710ce..905bbe9d2 100644 --- a/ui/app/components/button-group/button-group.component.js +++ b/ui/app/components/button-group/button-group.component.js @@ -5,6 +5,7 @@ import classnames from 'classnames' export default class ButtonGroup extends PureComponent { static propTypes = { defaultActiveButtonIndex: PropTypes.number, + noButtonActiveByDefault: PropTypes.bool, disabled: PropTypes.bool, children: PropTypes.array, className: PropTypes.string, @@ -16,7 +17,9 @@ export default class ButtonGroup extends PureComponent { } state = { - activeButtonIndex: this.props.defaultActiveButtonIndex || 0, + activeButtonIndex: this.props.noButtonActiveByDefault + ? null + : this.props.defaultActiveButtonIndex || 0, } handleButtonClick (activeButtonIndex) { |