mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
feat: isRequired for fields now respected
This commit is contained in:
@@ -11,6 +11,7 @@ export const FormSelectCategory = ({
|
||||
emptyValue,
|
||||
placeholder,
|
||||
hideIfEmpty = false,
|
||||
isRequired = false,
|
||||
...props
|
||||
}: {
|
||||
title: string
|
||||
@@ -18,6 +19,7 @@ export const FormSelectCategory = ({
|
||||
emptyValue?: string
|
||||
placeholder?: string
|
||||
hideIfEmpty?: boolean
|
||||
isRequired?: boolean
|
||||
} & SelectProps) => {
|
||||
const items = useMemo(
|
||||
() => categories.map((category) => ({ code: category.code, name: category.name, color: category.color })),
|
||||
@@ -30,6 +32,7 @@ export const FormSelectCategory = ({
|
||||
emptyValue={emptyValue}
|
||||
placeholder={placeholder}
|
||||
hideIfEmpty={hideIfEmpty}
|
||||
isRequired={isRequired}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user