Skip to content

Commit 86da842

Browse files
committed
fix
1 parent bd4f0c9 commit 86da842

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/Dialogs/CreateProjectWorkspaceDialog.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { EditMembers } from '../Members/EditMembers.tsx';
1313
import { useTranslation } from 'react-i18next';
1414

1515
import { CreateDialogProps } from './CreateWorkspaceDialogContainer.tsx';
16-
import { FieldErrors, UseFormGetValues, UseFormRegister, UseFormSetValue } from 'react-hook-form';
16+
import { FieldErrors, UseFormWatch, UseFormRegister, UseFormSetValue } from 'react-hook-form';
1717
import { MetadataForm } from './MetadataForm.tsx';
1818

1919
export type OnCreatePayload = {
@@ -36,7 +36,7 @@ export interface CreateProjectWorkspaceDialogProps {
3636
setValue: UseFormSetValue<CreateDialogProps>;
3737
projectName?: string;
3838
type: 'workspace' | 'project';
39-
watch: UseFormGetValues<CreateDialogProps>;
39+
watch: UseFormWatch<CreateDialogProps>;
4040
}
4141

4242
export function CreateProjectWorkspaceDialog({

src/components/Dialogs/MetadataForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FieldErrors, UseFormGetValues, UseFormRegister, UseFormSetValue, UseFormWatch } from 'react-hook-form';
1+
import { FieldErrors, UseFormRegister, UseFormSetValue, UseFormWatch } from 'react-hook-form';
22
import { CreateDialogProps } from './CreateWorkspaceDialogContainer.tsx';
33
import { useTranslation } from 'react-i18next';
44
import { Form, FormGroup, Input, Label, Option, Select, SelectDomRef, Ui5CustomEvent } from '@ui5/webcomponents-react';

src/components/Wizards/CreateManagedControlPlane/SummarizeStep.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import {
88
} from '../../../lib/api/types/crate/createManagedControlPlane.ts';
99
import YamlViewer from '../../Yaml/YamlViewer.tsx';
1010
import { idpPrefix } from '../../../utils/idpPrefix.ts';
11-
import { UseFormGetValues } from 'react-hook-form';
11+
import { UseFormWatch } from 'react-hook-form';
1212
import { CreateDialogProps } from '../../Dialogs/CreateWorkspaceDialogContainer.tsx';
1313

1414
interface SummarizeStepProps {
15-
watch: UseFormGetValues<CreateDialogProps>;
15+
watch: UseFormWatch<CreateDialogProps>;
1616
projectName: string;
1717
workspaceName: string;
1818
componentsList?: ComponentsListItem[];

0 commit comments

Comments
 (0)