From 120331a88603844e43ceb889acf2271dc1c76292 Mon Sep 17 00:00:00 2001 From: AmirReza Jamali Date: Sun, 28 Sep 2025 16:35:22 +0330 Subject: [PATCH] fixed create notification validations --- .../notifications/CreateNotification.tsx | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/src/components/forms/notifications/CreateNotification.tsx b/src/components/forms/notifications/CreateNotification.tsx index 4fd98ca..40a2574 100644 --- a/src/components/forms/notifications/CreateNotification.tsx +++ b/src/components/forms/notifications/CreateNotification.tsx @@ -50,14 +50,7 @@ const CreateNotificationForm = () => { control={control} name="schedule_at" label="schedule at" - required range={false} - rules={{ - required: { - value: true, - message: FormErrorMessages.required, - }, - }} placeholder="Select schedule date" /> @@ -104,9 +97,7 @@ const CreateNotificationForm = () => {
{

{errors.type.message}

)}
-
- +
+