From e3ad3b738882717624f6b704da69559531f0458c Mon Sep 17 00:00:00 2001 From: vivekgotstack Date: Fri, 10 Oct 2025 00:05:45 +0530 Subject: [PATCH] Corrected errors --- src/components/Navbar.tsx | 9 ++------- src/layouts/MainLayout.tsx | 12 +++++++++++- 2 files changed, 13 insertions(+), 8 deletions(-) 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 ( -