added * when field is required (#32225)

related issue: #26963

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-08-21 10:38:59 +02:00 committed by GitHub
parent c58128fcf7
commit 1df779e710
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,7 @@ export const FileComponent = ({
label,
helpText,
defaultValue,
required,
isDisabled = false,
}: ComponentProps) => {
const { t } = useTranslation();
@ -25,6 +26,7 @@ export const FileComponent = ({
label={t(label!)}
labelIcon={<HelpItem helpText={t(helpText!)} fieldLabelId={`${label}`} />}
fieldId={name!}
isRequired={required}
>
<Controller
name={convertToName(name!)}