From a3adb80a6eebe4842481fee39a19e77ad43aed80 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 21 Nov 2024 12:15:12 +0800 Subject: [PATCH 1/5] add className to list of class names instead of turning off default classes, add hideErrorText prop to hide errors for thresholds --- Client/src/Components/Inputs/Field/index.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx index d1eab532d..eb8251c03 100644 --- a/Client/src/Components/Inputs/Field/index.jsx +++ b/Client/src/Components/Inputs/Field/index.jsx @@ -46,7 +46,8 @@ const Field = forwardRef( error, disabled, hidden, - className + className, + hideErrorText = false, }, ref ) => { @@ -57,7 +58,7 @@ const Field = forwardRef( return ( - { error && ( + {error && (