af83/chouette-core

View on GitHub
app/packs/src/vehicle_journeys/containers/CancelVehicleJourneys.js

Summary

Maintainability
A
0 mins
Test Coverage
import { connect } from 'react-redux'
import CancelVehicleJourneysComponent from '../components/CancelVehicleJourneys'

const mapStateToProps = (state) => {
  return {
    editMode: state.editMode,
    status: state.status,
    filters: state.filters
  }
}

const mapDispatchToProps = (dispatch) => {
  return {
    onConfirmCancel: () => {
      window.location.reload()
    }
  }
}

const CancelVehicleJourneys = connect(mapStateToProps, mapDispatchToProps)(CancelVehicleJourneysComponent)

export default CancelVehicleJourneys