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<
|
export type NumberControlProps<
|
||||||
T extends FieldValues,
|
T extends FieldValues,
|
||||||
P extends FieldPath<T> = FieldPath<T>,
|
P extends FieldPath<T> = FieldPath<T>,
|
||||||
> = Omit<NumberInputProps, "name"> &
|
> = Omit<NumberInputProps, "name" | "isRequired" | "required"> &
|
||||||
UseControllerProps<T, P> & {
|
UseControllerProps<T, P> & {
|
||||||
name: string;
|
name: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { FormLabel } from "./FormLabel";
|
||||||
export type SwitchControlProps<
|
export type SwitchControlProps<
|
||||||
T extends FieldValues,
|
T extends FieldValues,
|
||||||
P extends FieldPath<T> = FieldPath<T>,
|
P extends FieldPath<T> = FieldPath<T>,
|
||||||
> = SwitchProps &
|
> = Omit<SwitchProps, "name"> &
|
||||||
UseControllerProps<T, P> & {
|
UseControllerProps<T, P> & {
|
||||||
name: string;
|
name: string;
|
||||||
label?: string;
|
label?: string;
|
||||||
|
|
|
@ -14,7 +14,7 @@ export type TextControlProps<
|
||||||
T extends FieldValues,
|
T extends FieldValues,
|
||||||
P extends FieldPath<T> = FieldPath<T>,
|
P extends FieldPath<T> = FieldPath<T>,
|
||||||
> = UseControllerProps<T, P> &
|
> = UseControllerProps<T, P> &
|
||||||
TextInputProps & {
|
Omit<TextInputProps, "name" | "isRequired" | "required"> & {
|
||||||
label: string;
|
label: string;
|
||||||
labelIcon?: string;
|
labelIcon?: string;
|
||||||
isDisabled?: boolean;
|
isDisabled?: boolean;
|
||||||
|
|
Loading…
Reference in a new issue