lbry-desktop/ui/js/page/discover/index.js

24 lines
531 B
JavaScript
Raw Normal View History

2017-04-23 11:56:50 +02:00
import React from 'react'
import {
connect
} from 'react-redux'
import {
doFetchFeaturedUris,
} from 'actions/content'
2017-04-23 11:56:50 +02:00
import {
2017-05-07 09:39:13 +02:00
selectFeaturedUris,
selectFetchingFeaturedUris,
2017-04-23 11:56:50 +02:00
} from 'selectors/content'
import DiscoverPage from './view'
const select = (state) => ({
2017-05-04 05:44:08 +02:00
featuredUris: selectFeaturedUris(state),
2017-05-07 09:39:13 +02:00
fetchingFeaturedUris: selectFetchingFeaturedUris(state),
2017-04-23 11:56:50 +02:00
})
const perform = (dispatch) => ({
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris())
2017-04-23 11:56:50 +02:00
})
export default connect(select, perform)(DiscoverPage)