af83/chouette-core

View on GitHub
app/packs/src/journey_patterns/containers/CancelJourneyPattern.js

Summary

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

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

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

const CancelJourneyPatterns = connect(mapStateToProps, mapDispatchToProps)(CancelJourneyPatternComponent)

export default CancelJourneyPatterns