Omit built-in props overwritten on form controls (#27425)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
parent
f970803738
commit
42dd203ae7
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ export type NumberControlOption = {
|
|||
export type NumberControlProps<
|
||||
T extends FieldValues,
|
||||
P extends FieldPath<T> = FieldPath<T>,
|
||||
> = Omit<NumberInputProps, "name"> &
|
||||
> = Omit<NumberInputProps, "name" | "isRequired" | "required"> &
|
||||
UseControllerProps<T, P> & {
|
||||
name: string;
|
||||
label?: string;
|
||||
|
|
|
@ -12,7 +12,7 @@ import { FormLabel } from "./FormLabel";
|
|||
export type SwitchControlProps<
|
||||
T extends FieldValues,
|
||||
P extends FieldPath<T> = FieldPath<T>,
|
||||
> = SwitchProps &
|
||||
> = Omit<SwitchProps, "name"> &
|
||||
UseControllerProps<T, P> & {
|
||||
name: string;
|
||||
label?: string;
|
||||
|
|
|
@ -14,7 +14,7 @@ export type TextControlProps<
|
|||
T extends FieldValues,
|
||||
P extends FieldPath<T> = FieldPath<T>,
|
||||
> = UseControllerProps<T, P> &
|
||||
TextInputProps & {
|
||||
Omit<TextInputProps, "name" | "isRequired" | "required"> & {
|
||||
label: string;
|
||||
labelIcon?: string;
|
||||
isDisabled?: boolean;
|
||||
|
|
Loading…
Reference in a new issue