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:
parent
c58128fcf7
commit
1df779e710
1 changed files with 2 additions and 0 deletions
|
@ -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!)}
|
||||
|
|
Loading…
Reference in a new issue