Skip to content

Commit

Permalink
fix(close isx on buysell tab switch)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed Jun 7, 2018
1 parent d261c80 commit 8a32aab
Showing 1 changed file with 10 additions and 1 deletion.
@@ -1,5 +1,9 @@
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import PropTypes from 'prop-types'

import { actions } from 'data'
import TabMenuBuySellStatus from './template.js'

class TabMenuBuySellStatusContainer extends React.PureComponent {
Expand All @@ -9,6 +13,7 @@ class TabMenuBuySellStatusContainer extends React.PureComponent {
}

handleClick (value) {
this.props.coinifyActions.coinifyNextCheckoutStep('checkout')
this.props.input.onChange(value)
}

Expand All @@ -22,4 +27,8 @@ TabMenuBuySellStatusContainer.propTypes = {
partner: PropTypes.string.isRequired
}

export default TabMenuBuySellStatusContainer
const mapDispatchToProps = (dispatch) => ({
coinifyActions: bindActionCreators(actions.modules.coinify, dispatch)
})

export default connect(undefined, mapDispatchToProps)(TabMenuBuySellStatusContainer)

0 comments on commit 8a32aab

Please sign in to comment.