diff --git a/src/Components/LoginModal/LoginModal.tsx b/src/Components/LoginModal/LoginModal.tsx index 4ef16a4..3cf8c5a 100644 --- a/src/Components/LoginModal/LoginModal.tsx +++ b/src/Components/LoginModal/LoginModal.tsx @@ -9,7 +9,9 @@ import VisibilityOff from "@mui/icons-material/VisibilityOff"; import LoginIcon from "@mui/icons-material/Login"; import Checkbox from "@mui/material/Checkbox"; import Button from "../Buttons/Button"; +import { useNavigate } from "react-router-dom"; export default function LoginModal() { + const navigate = useNavigate(); const [showPassword, setShowPassword] = useState(false); const [remember, setRemember] = useState(true); const [user, setUser] = useState({ @@ -110,7 +112,13 @@ export default function LoginModal() { marginBottom: 8, }} /> -