Skip to content

Commit

Permalink
cleaning up the code and disabling lints for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
aadeshkulkarni-fynd committed Nov 6, 2023
1 parent a4d07a6 commit ec70710
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Header = () => {

// Unsubscribe when component unmounts
return () => unsubscribe()
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])

const handleGPTSearchClick = () => {
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useMovieTrailer.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const useMovieTrailer = async (movieId) =>{

useEffect(() => {
getMovieVideos(movieId)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useNowPlayingMovies.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useNowPlayingMovies = () => {
}
useEffect(() => {
if(!nowPlayingMovies) getNowPlayingMovies();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}

Expand Down
1 change: 1 addition & 0 deletions src/hooks/usePopularMovies.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const usePopularMovies = () => {
}
useEffect(() => {
if(!popularMovies) getPopularMovies();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}

Expand Down
1 change: 1 addition & 0 deletions src/hooks/useTopRatedMovies.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const useTopRatedMovies = () => {
}
useEffect(() => {
if(!topRatedMovies) getTopRatedMovies();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}

Expand Down
1 change: 1 addition & 0 deletions src/hooks/useUpcomingMovies.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const useUpcomingMovies = () => {
}
useEffect(() => {
if(!upcomingMovies) getUpcomingMovies();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])
}

Expand Down
2 changes: 1 addition & 1 deletion src/utils/slice/movieSlice.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createSlice, current } from "@reduxjs/toolkit";
import { createSlice } from "@reduxjs/toolkit";

const movieSlice = createSlice({
name: "movies",
Expand Down

0 comments on commit ec70710

Please sign in to comment.