From 248c169c757fe9aeca0defc67cc8297e07a876d0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 8 Nov 2025 16:27:19 +0900 Subject: refactor(frontend): Remove unnecessary setLocation() call --- frontend/src/components/Navigation.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'frontend/src/components') diff --git a/frontend/src/components/Navigation.tsx b/frontend/src/components/Navigation.tsx index 4be54a7..c4af36a 100644 --- a/frontend/src/components/Navigation.tsx +++ b/frontend/src/components/Navigation.tsx @@ -5,17 +5,15 @@ import { faRightFromBracket, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { Link, useLocation } from "wouter"; +import { Link } from "wouter"; import { useAuth } from "../contexts/AuthContext"; import { MenuItem } from "./MenuItem"; export function Navigation() { const { logout, isLoggedIn } = useAuth(); - const [, setLocation] = useLocation(); const handleLogout = async () => { await logout(); - setLocation("/login"); }; return ( -- cgit v1.2.3-70-g09d2