From c2019c04b410ae8f7fe009af17b9da7a493165ef Mon Sep 17 00:00:00 2001 From: Amin Ghasempoor Date: Sun, 23 Jul 2023 14:55:48 +0330 Subject: [PATCH] debug warning notification --- public/locales/fa/app.json | 2 ++ src/core/components/notifications/ErrorNotification.jsx | 2 +- src/core/components/notifications/WarningNotification.jsx | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index 2beb76f..48be747 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -157,6 +157,7 @@ "confirm": "تایید", "context": "آیا از تایید این آیتم اطمینان دارید؟", "button-cancel": "بستن", + "button-confirm": "تایید", "amount_error": "وارد کردن مقدار پیشنهادی الزامیست", "description_error": "وارد کردن توضیحات الزامی است!", "description": "توضیحات", @@ -169,6 +170,7 @@ "reject": "عدم تایید", "context": "آیا از عدم تایید این آیتم اطمینان دارید؟", "button-cancel": "بستن", + "button-reject": "عدم تایید", "description": "توضیحات", "description_error": "وارد کردن توضیحات الزامی است!" }, diff --git a/src/core/components/notifications/ErrorNotification.jsx b/src/core/components/notifications/ErrorNotification.jsx index 6fb64d8..f0c887d 100644 --- a/src/core/components/notifications/ErrorNotification.jsx +++ b/src/core/components/notifications/ErrorNotification.jsx @@ -4,7 +4,7 @@ import { toast } from "react-toastify"; const ErrorNotification = (directionApp, status, t, message) => { toast( - ({ closeToast }) => ( + () => ( <> { +const WarningNotification = (directionApp, status, t) => { toast( - ({ closeToast }) => ( + () => ( <>