diff --git a/src/widgets/forms/ProfileForm/ChangePassword/ChangePassword.tsx b/src/widgets/forms/ProfileForm/ChangePassword/ChangePassword.tsx index 3d7097c..d9f6ec0 100644 --- a/src/widgets/forms/ProfileForm/ChangePassword/ChangePassword.tsx +++ b/src/widgets/forms/ProfileForm/ChangePassword/ChangePassword.tsx @@ -1,10 +1,10 @@ -import Link from "next/link"; import { useState } from "react"; import { apiInstance } from "@/shared/config/apiConfig"; import { useSession } from "next-auth/react"; import { AxiosError } from "axios"; import Loader from "@/shared/ui/Loader/Loader"; import ChangePasswordInput from "./ChangePasswordInput/ChangePasswordInput"; +import { Link } from "@/shared/config/navigation"; interface IChangePasswordProps { closeWindow: (bool: boolean) => void; @@ -79,7 +79,7 @@ const ChangePassword: React.FC = ({ setWarningConfirmNewPassword(""); setLoader(true); const res = await apiInstance.patch( - "/users/change_password/", + "/auth/password_change/", data, config ); @@ -146,12 +146,12 @@ const ChangePassword: React.FC = ({