Favourite Movies

Tests
Louison PARANT 2 years ago
parent 3d67df8e05
commit 71d4de0057

@ -55,8 +55,6 @@ export const setinfoMovie = (TrendingMovieList: Movie[]) => {
}; };
} }
export const getTrendingID = () => { export const getTrendingID = () => {
// @ts-ignore // @ts-ignore
return async dispatch => { return async dispatch => {
@ -114,7 +112,6 @@ export const removeMovieTrending = (movie: Movie) => {
} }
} }
export const addMovieToWatchLater = (movie : Movie) => { export const addMovieToWatchLater = (movie : Movie) => {
return{ return{
type: ADD_WATCHLATER, type: ADD_WATCHLATER,

@ -1,4 +1,3 @@
export const FETCH_TRENDING_ID : string = "FETCH_TRENDING_ID"; export const FETCH_TRENDING_ID : string = "FETCH_TRENDING_ID";
export const FETCH_TRENDING_MOVIE: string = "FETCH_TRENDING_MOVIE"; export const FETCH_TRENDING_MOVIE: string = "FETCH_TRENDING_MOVIE";
export const POP_FIRST_TRENDING: string = "POP_FIRST_TRENDING"; export const POP_FIRST_TRENDING: string = "POP_FIRST_TRENDING";

@ -42,5 +42,4 @@ export default appReducer = (state = initialState, action) => {
default: default:
return state; return state;
} }
} }

@ -21,7 +21,6 @@ import * as url from "url";
import moment from 'moment'; import moment from 'moment';
import CardsSwipe from 'react-native-cards-swipe'; import CardsSwipe from 'react-native-cards-swipe';
export default function HomeScreen({navigation}: RootStackScreenProps<'Home'>) { export default function HomeScreen({navigation}: RootStackScreenProps<'Home'>) {
// @ts-ignore // @ts-ignore
const trendingMovies = useSelector(state => state.appReducer.trendingMovies); const trendingMovies = useSelector(state => state.appReducer.trendingMovies);

Loading…
Cancel
Save