Skip to content

Commit

Permalink
Merge branch 'development' into feature/PL-bug-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed May 8, 2018
2 parents 2696471 + 893e050 commit e97a087
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ const Faq = (props) => {

Faq.propTypes = {
filteredContent: PropTypes.array.isRequired,
onFilter: PropTypes.func.isRequired,
filterText: PropTypes.string.isRequired,
handleTrayRightToggle: PropTypes.func.isRequired
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { connect } from 'react-redux'
import { compose, bindActionCreators } from 'redux'
import { Route, Redirect } from 'react-router-dom'
import ui from 'redux-ui'
import { reset } from 'redux-form'

import { actions, selectors } from 'data'
import WalletLayout from './template'
Expand All @@ -27,6 +28,7 @@ class WalletLayoutContainer extends React.PureComponent {
trayRightOpen={ui.trayRightOpen}
trayRightContent={ui.trayRightContent}
handleTrayRightToggle={(content, fromClickOutside) => {
this.props.resetFaqForm()
if (fromClickOutside) {
updateUI({ trayRightOpen: false })
} else if (content && ui.trayRightOpen && ui.trayRightContent !== content) {
Expand All @@ -51,6 +53,7 @@ const mapStateToProps = (state) => ({
})

const mapDispatchToProps = (dispatch) => ({
resetFaqForm: () => dispatch(reset('faq')),
kvStoreBchActions: bindActionCreators(actions.core.kvStore.bch, dispatch),
kvStoreEthereumActions: bindActionCreators(actions.core.kvStore.ethereum, dispatch),
kvStoreShapeshiftActions: bindActionCreators(actions.core.kvStore.shapeShift, dispatch),
Expand Down

0 comments on commit e97a087

Please sign in to comment.