change name to fetchRewardedContent
This commit is contained in:
parent
387a277322
commit
82f2d24dd3
2 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@ const select = state => ({
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
|
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
|
||||||
fetchRewards: () => dispatch(doFetchRewardedContent()),
|
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(
|
||||||
|
|
|
@ -5,7 +5,7 @@ import CategoryList from 'component/categoryList';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
fetchFeaturedUris: () => void,
|
fetchFeaturedUris: () => void,
|
||||||
fetchRewards: () => void,
|
fetchRewardedContent: () => void,
|
||||||
fetchingFeaturedUris: boolean,
|
fetchingFeaturedUris: boolean,
|
||||||
featuredUris: {},
|
featuredUris: {},
|
||||||
};
|
};
|
||||||
|
@ -17,13 +17,13 @@ class DiscoverPage extends React.PureComponent<Props> {
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
const { fetchFeaturedUris, fetchRewards } = this.props;
|
const { fetchFeaturedUris, fetchRewardedContent } = this.props;
|
||||||
fetchFeaturedUris();
|
fetchFeaturedUris();
|
||||||
fetchRewards();
|
fetchRewardedContent();
|
||||||
|
|
||||||
this.continousFetch = setInterval(() => {
|
this.continousFetch = setInterval(() => {
|
||||||
fetchFeaturedUris();
|
fetchFeaturedUris();
|
||||||
fetchRewards();
|
fetchRewardedContent();
|
||||||
}, 1000 * 60 * 60);
|
}, 1000 * 60 * 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue