From 72b8a70da2b49d767aa0262fe4095adf4523e469 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 2 Aug 2023 10:41:14 -0300 Subject: fix #7830 --- .../src/components/form/InputSelector.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'packages/merchant-backoffice-ui/src/components') diff --git a/packages/merchant-backoffice-ui/src/components/form/InputSelector.tsx b/packages/merchant-backoffice-ui/src/components/form/InputSelector.tsx index 8a57a9de8..a8dad5d89 100644 --- a/packages/merchant-backoffice-ui/src/components/form/InputSelector.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/InputSelector.tsx @@ -44,7 +44,7 @@ export function InputSelector({ fromStr = defaultFromString, toStr = defaultToString, }: Props): VNode { - const { error, value, onChange } = useField(name); + const { error, value, onChange, required } = useField(name); return (
@@ -58,8 +58,8 @@ export function InputSelector({
-
-

+

+

+ {help}

+ {required && ( + + + + )} {error &&

{error}

}
-- cgit v1.2.3