diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-11-08 16:27:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-11-08 16:27:19 +0900 |
| commit | 248c169c757fe9aeca0defc67cc8297e07a876d0 (patch) | |
| tree | 1945b1e0e4800027ee88f64095b2d0e88e60224e | |
| parent | 750cb8f0835848b9f6c949397229a69d79d7637e (diff) | |
| download | feedaka-248c169c757fe9aeca0defc67cc8297e07a876d0.tar.gz feedaka-248c169c757fe9aeca0defc67cc8297e07a876d0.tar.zst feedaka-248c169c757fe9aeca0defc67cc8297e07a876d0.zip | |
refactor(frontend): Remove unnecessary setLocation() call
| -rw-r--r-- | frontend/src/components/Navigation.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
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 ( |
