Browse Source

fix(bug): fix container and proptype bug

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
24fedfbf62
  1. 2
      app/components/Contacts/Network.js
  2. 16
      app/routes/activity/containers/ActivityContainer.js

2
app/components/Contacts/Network.js

@ -165,11 +165,11 @@ class Network extends Component {
}
Network.propTypes = {
channels: PropTypes.array.isRequired,
currentChannels: PropTypes.array.isRequired,
nodes: PropTypes.array.isRequired,
nonActiveFilters: PropTypes.array.isRequired,
channels: PropTypes.object.isRequired,
balance: PropTypes.object.isRequired,
currentTicker: PropTypes.object.isRequired,

16
app/routes/activity/containers/ActivityContainer.js

@ -65,16 +65,14 @@ const mapStateToProps = state => ({
})
const mergeProps = (stateProps, dispatchProps, ownProps) => ({
return {
...stateProps,
...dispatchProps,
...ownProps,
...stateProps,
...dispatchProps,
...ownProps,
// action to open the pay form
openPayForm: () => dispatchProps.setFormType('PAY_FORM'),
// action to open the request form
openRequestForm: () => dispatchProps.setFormType('REQUEST_FORM')
}
// action to open the pay form
openPayForm: () => dispatchProps.setFormType('PAY_FORM'),
// action to open the request form
openRequestForm: () => dispatchProps.setFormType('REQUEST_FORM')
})
export default connect(mapStateToProps, mapDispatchToProps, mergeProps)(Activity)

Loading…
Cancel
Save