feat: isRequired for fields now respected

This commit is contained in:
Vasily Zubarev
2025-05-09 16:43:03 +02:00
parent 92dd66fd00
commit f42fdcf74e
11 changed files with 114 additions and 18 deletions

View File

@@ -8,6 +8,7 @@ export const FormSelectProject = ({
emptyValue,
placeholder,
hideIfEmpty = false,
isRequired = false,
...props
}: {
title: string
@@ -15,6 +16,7 @@ export const FormSelectProject = ({
emptyValue?: string
placeholder?: string
hideIfEmpty?: boolean
isRequired?: boolean
} & SelectProps) => {
return (
<FormSelect
@@ -23,6 +25,7 @@ export const FormSelectProject = ({
emptyValue={emptyValue}
placeholder={placeholder}
hideIfEmpty={hideIfEmpty}
isRequired={isRequired}
{...props}
/>
)