aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/components/Navigation.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Navigation.tsx')
-rw-r--r--frontend/src/components/Navigation.tsx4
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 (