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 } });
|
||||
};
|
||||
|
||||
Generated
-13
@@ -6331,19 +6331,6 @@
|
||||
"integrity": "sha512-kZFnouyVv7eP/Phmrlo9FK+zcAdriZJvzxXHF1Sl1P377WSGe2G/JxVolhTrB/jeV47lKImhNUsijjHAAbcl/A==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/react-toastify": {
|
||||
"version": "11.1.0",
|
||||
"resolved": "https://registry.npmjs.org/react-toastify/-/react-toastify-11.1.0.tgz",
|
||||
"integrity": "sha512-e9h23x3phN0wbFeB6yovmWp7lobzV4CaCH0LO8nVP6H7Y+3GbcLpIzMm9dJhcp1RXbpyfvjgpfXqO80QAmn7sg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"clsx": "^2.1.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "^18 || ^19",
|
||||
"react-dom": "^18 || ^19"
|
||||
}
|
||||
},
|
||||
"node_modules/react-transition-group": {
|
||||
"version": "4.4.5",
|
||||
"resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-4.4.5.tgz",
|
||||
|
||||
Reference in New Issue
Block a user