diff --git a/src/app/components/EmailSection.jsx b/src/app/components/EmailSection.jsx
index 58d42e19..474ecc3d 100644
--- a/src/app/components/EmailSection.jsx
+++ b/src/app/components/EmailSection.jsx
@@ -45,7 +45,6 @@ const EmailSection = () => {
className="grid md:grid-cols-2 my-12 md:my-12 py-24 gap-4 relative"
>
{emailSubmitted ? (
diff --git a/src/app/components/MenuOverlay.jsx b/src/app/components/MenuOverlay.jsx
deleted file mode 100644
index a2ddfe5f..00000000
--- a/src/app/components/MenuOverlay.jsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import React from "react";
-import NavLink from "./NavLink";
-
-const MenuOverlay = ({ links }) => {
- return (
-
- {links.map((link, index) => (
- -
-
-
- ))}
-
- );
-};
-
-export default MenuOverlay;
diff --git a/src/app/components/NavLink.jsx b/src/app/components/NavLink.jsx
index fdd010a3..972b666b 100644
--- a/src/app/components/NavLink.jsx
+++ b/src/app/components/NavLink.jsx
@@ -1,8 +1,15 @@
import Link from "next/link";
-const NavLink = ({ href, title }) => {
+const NavLink = ({ href, title, setNavbarOpen = () => {} }) => {
+
+ const handleClick = () => {
+ setNavbarOpen(false);
+ };
+
return (
@@ -10,5 +17,4 @@ const NavLink = ({ href, title }) => {
);
};
-
-export default NavLink;
+export default NavLink;
\ No newline at end of file
diff --git a/src/app/components/Navbar.jsx b/src/app/components/Navbar.jsx
index 1088f425..cde4fa8e 100644
--- a/src/app/components/Navbar.jsx
+++ b/src/app/components/Navbar.jsx
@@ -3,7 +3,6 @@ import Link from "next/link";
import React, { useState } from "react";
import NavLink from "./NavLink";
import { Bars3Icon, XMarkIcon } from "@heroicons/react/24/solid";
-import MenuOverlay from "./MenuOverlay";
const navLinks = [
{
@@ -59,7 +58,17 @@ const Navbar = () => {
- {navbarOpen ?