diff --git a/js/libs/ui-shared/src/controls/NumberControl.tsx b/js/libs/ui-shared/src/controls/NumberControl.tsx index 5cbe12e963..24e9db049e 100644 --- a/js/libs/ui-shared/src/controls/NumberControl.tsx +++ b/js/libs/ui-shared/src/controls/NumberControl.tsx @@ -21,7 +21,7 @@ export type NumberControlOption = { export type NumberControlProps< T extends FieldValues, P extends FieldPath = FieldPath, -> = Omit & +> = Omit & UseControllerProps & { name: string; label?: string; diff --git a/js/libs/ui-shared/src/controls/SwitchControl.tsx b/js/libs/ui-shared/src/controls/SwitchControl.tsx index 509d73b493..12f0290cc1 100644 --- a/js/libs/ui-shared/src/controls/SwitchControl.tsx +++ b/js/libs/ui-shared/src/controls/SwitchControl.tsx @@ -12,7 +12,7 @@ import { FormLabel } from "./FormLabel"; export type SwitchControlProps< T extends FieldValues, P extends FieldPath = FieldPath, -> = SwitchProps & +> = Omit & UseControllerProps & { name: string; label?: string; diff --git a/js/libs/ui-shared/src/controls/TextControl.tsx b/js/libs/ui-shared/src/controls/TextControl.tsx index e95796dabc..2f9560a7f2 100644 --- a/js/libs/ui-shared/src/controls/TextControl.tsx +++ b/js/libs/ui-shared/src/controls/TextControl.tsx @@ -14,7 +14,7 @@ export type TextControlProps< T extends FieldValues, P extends FieldPath = FieldPath, > = UseControllerProps & - TextInputProps & { + Omit & { label: string; labelIcon?: string; isDisabled?: boolean;