aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/vehicle_journeys/containers/tools/VehicleJourneyInfoButton.js
blob: 19010c312dad182affa09ffb40ffb3c212a568ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import actions from '../../actions'
import { connect } from 'react-redux'
import VehicleJourneyInfoButtonComponent from '../../components/tools/VehicleJourneyInfoButton'

const mapStateToProps = (state, ownProps) => {
  return {
  }
}

const mapDispatchToProps = (dispatch) => {
  return {
    onOpenEditModal: (vj) =>{
      dispatch(actions.openInfoModal(vj))
    },
  }
}

const VehicleJourneyInfoButton = connect(mapStateToProps, mapDispatchToProps)(VehicleJourneyInfoButtonComponent)

export default VehicleJourneyInfoButton