diff --git a/src/hooks/useFetch.jsx b/src/hooks/useFetch.jsx index c132583..abe64ef 100644 --- a/src/hooks/useFetch.jsx +++ b/src/hooks/useFetch.jsx @@ -6,7 +6,6 @@ const useFetch = (url) => { const [loading, setLoading] = useState(false) const [error, setError] = useState({}) useEffect(() => { - // console.log("Inside fetch") const fetch = async () => { let response; try { diff --git a/src/pages/HomePage.jsx b/src/pages/HomePage.jsx index 55981c6..36c5432 100644 --- a/src/pages/HomePage.jsx +++ b/src/pages/HomePage.jsx @@ -16,8 +16,6 @@ const HomePage = () => { url + "&s=" + searchValue + "&page=" + page ); - console.log(page); - const handlePageChange = (e) => { setPage(e?.target?.textContent); }; @@ -50,7 +48,14 @@ const HomePage = () => { {data?.Search?.length > 0 && (
- + {/* */} + {loading && ( + + )}
{data?.Search?.map((movie) => (