From 3a9daec61eb89ad2bd2a8c7ca0878a0c8ede32b7 Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Tue, 23 Mar 2021 13:37:07 +0100 Subject: [PATCH] form bugfixes - validation message - cancel --- src/common/input/ChakraInput.jsx | 9 ++------- src/common/input/ChakraNumberInput.jsx | 9 ++------- src/features/form/EventForm.jsx | 15 +++++++++------ 3 files changed, 13 insertions(+), 20 deletions(-) diff --git a/src/common/input/ChakraInput.jsx b/src/common/input/ChakraInput.jsx index 1e85cd8c6..c282b2f65 100644 --- a/src/common/input/ChakraInput.jsx +++ b/src/common/input/ChakraInput.jsx @@ -10,13 +10,8 @@ export default function ChakraInput(props) { {({ field, form }) => { return ( - - - {label} - + + {label} {form.errors[name]} diff --git a/src/common/input/ChakraNumberInput.jsx b/src/common/input/ChakraNumberInput.jsx index 54e9bc069..887797233 100644 --- a/src/common/input/ChakraNumberInput.jsx +++ b/src/common/input/ChakraNumberInput.jsx @@ -15,13 +15,8 @@ export default function ChakraNumberInput(props) { {({ field, form }) => { return ( - - - {label} - + + {label} { @@ -50,7 +53,7 @@ export default function EventForm(props) { }} > {(props) => ( -
+ @@ -67,7 +70,7 @@ export default function EventForm(props) { @@ -80,7 +83,7 @@ export default function EventForm(props) { Save - + )}