diff --git a/components/CoursesSilder.tsx b/components/CoursesSilder.tsx index 3a3bbf2..6be1640 100644 --- a/components/CoursesSilder.tsx +++ b/components/CoursesSilder.tsx @@ -12,7 +12,7 @@ import './slick.css' const CoursesSilder = ({ courses }: { courses: CoursesProps[] }) => { - var settings = { + const settings = { dots: true, infinite: true, speed: 500, diff --git a/components/Navbar/Nav.tsx b/components/Navbar/Nav.tsx index a598fa9..212c03e 100644 --- a/components/Navbar/Nav.tsx +++ b/components/Navbar/Nav.tsx @@ -15,23 +15,9 @@ type Props = { settings: SettingsProps } const Nav = ({ openNav, courses, showNav, settings }: Props) => { - const [navBg, setNavBg] = useState(false) + const [dropdownOpen, setDropdownOpen] = useState(false); - useEffect(() => { - const handler = () => { - if (window.scrollY >= 90) { - setNavBg(true) - } else if (window.scrollY <= 90) { - setNavBg(false) - } - } - - window.addEventListener("scroll", handler) - return () => { - window.removeEventListener("scroll", handler) - } - }, []); return (
diff --git a/next.config.mjs b/next.config.mjs index 4678774..641276f 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,10 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + eslint: { + // Warning: This allows production builds to successfully complete even if + // your project has ESLint errors. + ignoreDuringBuilds: true, + }, +}; export default nextConfig;