From 8fcfebf0fc9f30a03e01b73d86ebfec5ac952c96 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 31 Mar 2023 01:40:06 +0530 Subject: [PATCH] fix: invalid date toast message updated (#633) --- apps/app/components/cycles/form.tsx | 4 ++-- apps/app/components/cycles/sidebar.tsx | 4 ++-- apps/app/components/modules/form.tsx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/app/components/cycles/form.tsx b/apps/app/components/cycles/form.tsx index 32cf45f2a..99e55ce7a 100644 --- a/apps/app/components/cycles/form.tsx +++ b/apps/app/components/cycles/form.tsx @@ -153,7 +153,7 @@ export const CycleForm: React.FC = ({ handleFormSubmit, handleClose, stat setToastAlert({ type: "error", title: "Error!", - message: "You have enter invalid date.", + message: "The date you have entered is invalid. Please check and enter a valid date.", }); } } @@ -184,7 +184,7 @@ export const CycleForm: React.FC = ({ handleFormSubmit, handleClose, stat setToastAlert({ type: "error", title: "Error!", - message: "You have enter invalid date.", + message: "The date you have entered is invalid. Please check and enter a valid date.", }); } } diff --git a/apps/app/components/cycles/sidebar.tsx b/apps/app/components/cycles/sidebar.tsx index c3a04ae6b..bbc08a461 100644 --- a/apps/app/components/cycles/sidebar.tsx +++ b/apps/app/components/cycles/sidebar.tsx @@ -205,7 +205,7 @@ export const CycleDetailsSidebar: React.FC = ({ setToastAlert({ type: "error", title: "Error!", - message: "You have enter invalid date.", + message: "The date you have entered is invalid. Please check and enter a valid date.", }); } } @@ -268,7 +268,7 @@ export const CycleDetailsSidebar: React.FC = ({ setToastAlert({ type: "error", title: "Error!", - message: "You have enter invalid date.", + message: "The date you have entered is invalid. Please check and enter a valid date.", }); } } diff --git a/apps/app/components/modules/form.tsx b/apps/app/components/modules/form.tsx index 5b797e7c9..b1e56ce90 100644 --- a/apps/app/components/modules/form.tsx +++ b/apps/app/components/modules/form.tsx @@ -119,7 +119,7 @@ export const ModuleForm: React.FC = ({ handleFormSubmit, handleClose, sta setToastAlert({ type: "error", title: "Error!", - message: "You have enter invalid date.", + message: "The date you have entered is invalid. Please check and enter a valid date.", }); } } @@ -144,7 +144,7 @@ export const ModuleForm: React.FC = ({ handleFormSubmit, handleClose, sta setToastAlert({ type: "error", title: "Error!", - message: "You have enter invalid date.", + message: "The date you have entered is invalid. Please check and enter a valid date.", }); } }