diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 07e766b..6ab792b 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -12,21 +12,16 @@ import { CardContent, } from "./ui/card"; import { Button } from "./ui/button"; -import { useRef, useContext, useEffect } from "react"; +import { useContext } from "react"; import { ThemeContext } from "@/contexts/ThemeContext"; function Navbar() { - const sectionRef=useRef(null); - useEffect(()=>{ - sectionRef.current.scrollIntoView({behavior:"smooth"}); - },[]); const currentTheme = useContext(ThemeContext); if (!currentTheme) return null; const location = useLocation(); return ( -