af83/chouette-core

View on GitHub
app/packs/src/routes/containers/CancelRoute.js

Summary

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

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

const mapDispatchToProps = (dispatch) => {
  return {
    onConfirmCancel: () => {
      window.location.assign(window.redirectUrl)
    },
  }
}

const CancelRoute = connect(mapStateToProps, mapDispatchToProps)(CancelRouteComponent)

export default CancelRoute