From 11d71060b2bccc58d9e4a8a31ab5936f89944082 Mon Sep 17 00:00:00 2001 From: Shemy Gan Date: Mon, 11 Nov 2024 20:10:49 -0500 Subject: [PATCH] - All threshold use same error msg - Display one common error msg at bottom for any field with error - Hide individual field error for threshold input --- Client/src/Components/Inputs/Field/index.jsx | 3 +- .../CreateMonitor/index.jsx | 55 +++++++++++++++---- Client/src/Validation/validation.js | 33 ++++++----- 3 files changed, 64 insertions(+), 27 deletions(-) diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx index 0e52dda2d..6929b51b2 100644 --- a/Client/src/Components/Inputs/Field/index.jsx +++ b/Client/src/Components/Inputs/Field/index.jsx @@ -186,10 +186,11 @@ const Field = forwardRef( ), }} /> - {error && ( + { error && (