2017-05-04 05:44:08 +02:00
|
|
|
import React from 'react'
|
|
|
|
import {
|
|
|
|
connect
|
|
|
|
} from 'react-redux'
|
|
|
|
import {
|
2017-05-15 05:50:59 +02:00
|
|
|
doFetchClaimsByChannel
|
2017-05-13 00:50:51 +02:00
|
|
|
} from 'actions/content'
|
|
|
|
import {
|
2017-05-15 05:50:59 +02:00
|
|
|
makeSelectClaimsForChannel
|
2017-05-13 00:50:51 +02:00
|
|
|
} from 'selectors/claims'
|
2017-05-04 05:44:08 +02:00
|
|
|
import ChannelPage from './view'
|
2017-05-15 05:50:59 +02:00
|
|
|
//
|
|
|
|
// const select = (state) => ({
|
|
|
|
// uri: selectCurrentUri(state),
|
|
|
|
// claim: selectCurrentUriClaim(state),
|
|
|
|
// claims: selectCurrentUriClaims(state)
|
|
|
|
// })
|
2017-05-04 05:44:08 +02:00
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
2017-05-15 05:50:59 +02:00
|
|
|
fetchClaims: (uri) => dispatch(doFetchClaimsByChannel(uri))
|
2017-05-04 05:44:08 +02:00
|
|
|
})
|
|
|
|
|
2017-05-15 05:50:59 +02:00
|
|
|
export default connect(null, perform)(ChannelPage)
|