From 69f95723f1546a48b4ed60a0f54a9637ab3f2151 Mon Sep 17 00:00:00 2001 From: llpingll <94099281+llpingll@users.noreply.github.com> Date: Mon, 2 Feb 2026 22:19:27 +0000 Subject: [PATCH] Combine useNavigate and useLocation into one import --- client/src/Pages/Account/components/PasswordPanel.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/Pages/Account/components/PasswordPanel.jsx b/client/src/Pages/Account/components/PasswordPanel.jsx index 7deb6dc8c..1ac070035 100644 --- a/client/src/Pages/Account/components/PasswordPanel.jsx +++ b/client/src/Pages/Account/components/PasswordPanel.jsx @@ -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: "",