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.
|
|
|
import { withRouter } from 'react-router'
|
|
|
|
import { connect } from 'react-redux'
|
|
|
|
|
|
|
|
import {
|
|
|
|
fetchChannels,
|
|
|
|
|
|
|
|
channelsSelectors
|
|
|
|
} from 'reducers/channels'
|
|
|
|
|
|
|
|
import { tickerSelectors } from 'reducers/ticker'
|
|
|
|
|
|
|
|
import Channels from '../components/Channels'
|
|
|
|
|
|
|
|
const mapDispatchToProps = {
|
|
|
|
fetchChannels
|
|
|
|
}
|
|
|
|
|
|
|
|
const mapStateToProps = state => ({
|
|
|
|
channels: state.channels,
|
|
|
|
ticker: state.ticker,
|
|
|
|
|
|
|
|
allChannels: channelsSelectors.allChannels(state),
|
|
|
|
currentTicker: tickerSelectors.currentTicker(state)
|
|
|
|
})
|
|
|
|
|
|
|
|
export default withRouter(connect(mapStateToProps, mapDispatchToProps)(Channels))
|