lbry-desktop/ui/js/page/channel/index.js
2017-05-14 23:50:59 -04:00

23 lines
534 B
JavaScript

import React from 'react'
import {
connect
} from 'react-redux'
import {
doFetchClaimsByChannel
} from 'actions/content'
import {
makeSelectClaimsForChannel
} from 'selectors/claims'
import ChannelPage from './view'
//
// const select = (state) => ({
// uri: selectCurrentUri(state),
// claim: selectCurrentUriClaim(state),
// claims: selectCurrentUriClaims(state)
// })
const perform = (dispatch) => ({
fetchClaims: (uri) => dispatch(doFetchClaimsByChannel(uri))
})
export default connect(null, perform)(ChannelPage)