From 36549f3224541b40c43f7f074ec96c18fd8c5c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Fri, 30 Aug 2024 20:25:39 +0200 Subject: [PATCH] "Added 'required' attribute to several form input fields in NotificationAdd component." --- .../notificationUtils/notificationAdd/notificationAdd.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/admin/notificationUtils/notificationAdd/notificationAdd.jsx b/client/admin/notificationUtils/notificationAdd/notificationAdd.jsx index ca249fbe5..bfe98c10a 100644 --- a/client/admin/notificationUtils/notificationAdd/notificationAdd.jsx +++ b/client/admin/notificationUtils/notificationAdd/notificationAdd.jsx @@ -90,6 +90,7 @@ const NotificationAdd = () => { type='text' ref={dismissKeyRef} placeholder='GOOGLEDRIVENOTIF' + required /> @@ -100,6 +101,7 @@ const NotificationAdd = () => { type='text' ref={titleRef} placeholder='Stop using Google Drive as image host' + required /> @@ -109,7 +111,8 @@ const NotificationAdd = () => { className='fieldInput' type='text' ref={textRef} - placeholder='Google Drive is not an image hosting site, you should not use it as such.'> + placeholder='Google Drive is not an image hosting site, you should not use it as such.' + required> @@ -121,6 +124,7 @@ const NotificationAdd = () => { className='fieldInput' selected={startAt} onChange={date => setStartAt(date)} + required /> @@ -131,6 +135,7 @@ const NotificationAdd = () => { className='fieldInput' selected={stopAt} onChange={date => setStopAt(date)} + required />