refactor: delete console logs and unused node modules
This commit is contained in:
@@ -20,7 +20,6 @@ export const LoginCard = () => {
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
console.log(search);
|
||||
if (search.loggedOut) {
|
||||
setAlert({
|
||||
isAlert: true,
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
import { Button, DialogTitle, Input, Modal, ModalDialog, Stack, } from "@mui/joy";
|
||||
import {
|
||||
Button,
|
||||
DialogTitle,
|
||||
Input,
|
||||
Modal,
|
||||
ModalDialog,
|
||||
Stack,
|
||||
} from "@mui/joy";
|
||||
import { useForm } from "@tanstack/react-form";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { useTranslation } from "react-i18next";
|
||||
@@ -30,8 +37,6 @@ export const ChangePasswordModal = (props: ChangePasswordProps) => {
|
||||
newPasswordRep: "",
|
||||
},
|
||||
onSubmit: async ({ value }) => {
|
||||
console.log(value);
|
||||
|
||||
if (
|
||||
value.newPassword === value.newPasswordRep &&
|
||||
value.newPassword !== ""
|
||||
|
||||
@@ -5,7 +5,6 @@ export const useLogout = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const logout = () => {
|
||||
console.log("LOGOUT");
|
||||
Cookies.remove("token");
|
||||
void navigate({ to: "/login", search: { loggedOut: true } });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user