first commit

This commit is contained in:
Ekaiva 2023-09-10 14:57:55 +05:30
commit c434d21c24
6 changed files with 18 additions and 9 deletions

View file

@ -1,4 +1,6 @@
{
"extends": "next/core-web-vitals",
"rules": { "react/no-unescaped-entities": 0 }
"rules": {
"@next/next/no-img-element": "off",
"react/no-unescaped-entities": 0 }
}

View file

@ -6,7 +6,9 @@ export default function Layout({ children }) {
<div className='text-app-pure-white lg:flex'>
<Navigation />
<main className='mx-0 flex p-1 flex-col py-6 md:m-6 md:px-0 md:pt-0 lg:ml-[10rem] lg:min-w-[800px] lg:grow'>
<div className='py-1 md:rounded-[10px] head' style={{textAlign:"center"}}>Y.A.P.S [Yet Another Piracy Site]</div>
<br/>
{children}
<Footer />
</main>

View file

@ -37,11 +37,13 @@ const Latest = () => {
useEffect(() => {
fetchMovieList(cat);
}, [page])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page])// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(() => {
fetchMovieListRefresh(cat);
setCat(categoryId)
}, [categoryId])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [categoryId])// eslint-disable-next-line react-hooks/exhaustive-deps
const fetchMovieList = (cat) => {
@ -107,8 +109,8 @@ const Latest = () => {
window.addEventListener('scroll', handleScroll);
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, [page]);
};// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page]);// eslint-disable-next-line react-hooks/exhaustive-deps
return (

View file

@ -28,8 +28,8 @@ const LendingPage = () => {
useEffect(() => {
fetchMovieList(categoryId);
}, [page])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [page])// eslint-disable-next-line react-hooks/exhaustive-deps
const fetchMovieList = (categoryId) => {

View file

@ -50,7 +50,9 @@ const Details = () => {
useEffect(() => {
if (router.isReady) {
id = router.query.id;
// eslint-disable-next-line react-hooks/exhaustive-deps
id = router.query.id;// eslint-disable-next-line react-hooks/exhaustive-deps
// eslint-disable-next-line react-hooks/exhaustive-deps
slug = router.query.slug;
if (!id) return null;
getDetails()

View file

@ -33,7 +33,8 @@ const Upload = () => {
setSelectedOption(_data)
return setToken(localStorage.getItem("access_token"));
}, [])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [])// eslint-disable-next-line react-hooks/exhaustive-deps
useEffect(()=>{
},[])