Remove unused code

Signed-off-by: gearnode <bryan@frimin.fr>
This commit is contained in:
gearnode
2025-03-26 10:15:44 +01:00
parent c92c2f9238
commit 008af82106

View File

@@ -1,5 +1,5 @@
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { Link, useLocation, useNavigate } from "react-router"; import { Link, useLocation } from "react-router";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label"; import { Label } from "@/components/ui/label";
@@ -12,7 +12,6 @@ export default function LoginPage() {
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const { toast } = useToast(); const { toast } = useToast();
const location = useLocation(); const location = useLocation();
const navigate = useNavigate();
useEffect(() => { useEffect(() => {
if (location.state?.authRequired) { if (location.state?.authRequired) {