You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
379 B

import { withRouter } from 'react-router'
import { connect } from 'react-redux'
import {
fetchChannels,
} from 'reducers/channels'
import Channels from '../components/Channels'
const mapDispatchToProps = {
fetchChannels
}
const mapStateToProps = state => ({
channels: state.channels
})
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Channels))