change name to fetchRewardedContent

This commit is contained in:
Sean Yesmunt 2018-08-28 17:53:20 -04:00
parent 387a277322
commit 82f2d24dd3
2 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ const select = state => ({
const perform = dispatch => ({
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
fetchRewards: () => dispatch(doFetchRewardedContent()),
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
});
export default connect(

View file

@ -5,7 +5,7 @@ import CategoryList from 'component/categoryList';
type Props = {
fetchFeaturedUris: () => void,
fetchRewards: () => void,
fetchRewardedContent: () => void,
fetchingFeaturedUris: boolean,
featuredUris: {},
};
@ -17,13 +17,13 @@ class DiscoverPage extends React.PureComponent<Props> {
}
componentWillMount() {
const { fetchFeaturedUris, fetchRewards } = this.props;
const { fetchFeaturedUris, fetchRewardedContent } = this.props;
fetchFeaturedUris();
fetchRewards();
fetchRewardedContent();
this.continousFetch = setInterval(() => {
fetchFeaturedUris();
fetchRewards();
fetchRewardedContent();
}, 1000 * 60 * 60);
}