lbry-desktop/src/renderer/page/discover/index.js

20 lines
543 B
JavaScript
Raw Normal View History

2017-06-06 23:19:12 +02:00
import React from "react";
import { connect } from "react-redux";
2017-11-13 22:02:23 +01:00
import { doFetchFeaturedUris } from "redux/actions/content";
2017-04-23 11:56:50 +02:00
import {
2017-05-07 09:39:13 +02:00
selectFeaturedUris,
selectFetchingFeaturedUris,
2017-11-13 22:02:23 +01:00
} from "redux/selectors/content";
2017-06-06 23:19:12 +02:00
import DiscoverPage from "./view";
2017-04-23 11:56:50 +02:00
2017-06-06 06:21:55 +02:00
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-06-06 06:21:55 +02:00
});
2017-04-23 11:56:50 +02:00
2017-06-06 06:21:55 +02:00
const perform = dispatch => ({
2017-06-06 23:19:12 +02:00
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
2017-06-06 06:21:55 +02:00
});
2017-04-23 11:56:50 +02:00
2017-06-06 06:21:55 +02:00
export default connect(select, perform)(DiscoverPage);