Combine useNavigate and useLocation into one import
This commit is contained in:
1 parent
464b16ec9d
commit
69f95723f1
1 file changed
+1
-2
@@ -11,10 +11,9 @@ import { useDispatch, useSelector } from "react-redux";
|
||||
import { createToast } from "../../../Utils/toastUtils.jsx";
|
||||
import { getTouchedFieldErrors } from "../../../Validation/error.js";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router-dom";
|
||||
import { useNavigate, useLocation } from "react-router-dom";
|
||||
import { clearAuthState } from "../../../Features/Auth/authSlice.js";
|
||||
import TextLink from "@/Components/v1/TextLink/index.jsx";
|
||||
import { useLocation } from "react-router-dom";
|
||||
|
||||
const defaultPasswordsState = {
|
||||
password: "",
|
||||
|
||||
Reference in new issue
Block a user