From e0b63a6f74a7a9b3b97154de902b808ad17642a3 Mon Sep 17 00:00:00 2001 From: Mohammad Jalali Date: Sun, 16 Jul 2023 12:07:04 +0330 Subject: [PATCH] add notification in pages that do not have that --- src/components/login-welfare-services/sendToken.jsx | 2 +- src/components/register-navy/SendToken.jsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/login-welfare-services/sendToken.jsx b/src/components/login-welfare-services/sendToken.jsx index bd7e466..4d14dd1 100644 --- a/src/components/login-welfare-services/sendToken.jsx +++ b/src/components/login-welfare-services/sendToken.jsx @@ -1,4 +1,4 @@ -// import Notifications from "@/core/components/notifications"; +import Notifications from "@/core/components/notifications"; import StyledForm from "@/core/components/StyledForm"; import { LOGIN } from "@/core/data/apiRoutes"; import CenterLayout from "@/layouts/CenterLayout"; diff --git a/src/components/register-navy/SendToken.jsx b/src/components/register-navy/SendToken.jsx index d4156b8..fcba709 100644 --- a/src/components/register-navy/SendToken.jsx +++ b/src/components/register-navy/SendToken.jsx @@ -1,8 +1,9 @@ +import Notifications from "@/core/components/notifications"; import StyledForm from "@/core/components/StyledForm"; import { REGISTER } from "@/core/data/apiRoutes"; import CenterLayout from "@/layouts/CenterLayout"; import FullPageLayout from "@/layouts/FullPageLayout"; -// import useDirection from "@/lib/app/hooks/useDirection"; +import useDirection from "@/lib/app/hooks/useDirection"; import useUser from "@/lib/app/hooks/useUser"; import LoginIcon from "@mui/icons-material/Login"; import { @@ -20,7 +21,7 @@ import * as Yup from "yup"; const SendToken = ({ PhoneNumber, nationalId, navganId, typeId }) => { const t = useTranslations(); - // const { directionApp } = useDirection(); + const { directionApp } = useDirection(); const { setToken } = useUser(); const initialValues = {