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 => ({
|
||||
fetchFeaturedUris: () => dispatch(doFetchFeaturedUris()),
|
||||
fetchRewards: () => dispatch(doFetchRewardedContent()),
|
||||
fetchRewardedContent: () => dispatch(doFetchRewardedContent()),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue