af83/chouette-core

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

Summary

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

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

const mapDispatchToProps = (dispatch) => {
  return {
    onToggleArrivals: () =>{
      dispatch(actions.toggleArrivals())
    }
  }
}

const ToggleArrivalsList = connect(mapStateToProps, mapDispatchToProps)(ToggleArrivals)

export default ToggleArrivalsList