From c3c1fd3a17653b677082193df268bbdf3194912c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Thu, 14 Sep 2023 13:33:21 +0200 Subject: [PATCH] fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .changeset/old-windows-argue.md | 5 +++++ plugins/catalog-import/api-report.md | 2 +- .../StepPrepareCreatePullRequest/PreparePullRequestForm.tsx | 3 +-- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changeset/old-windows-argue.md diff --git a/.changeset/old-windows-argue.md b/.changeset/old-windows-argue.md new file mode 100644 index 0000000000..f687d1b08c --- /dev/null +++ b/.changeset/old-windows-argue.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-import': minor +--- + +Slight change to the `PreparePullRequestFormProps`, because of an update to `react-hook-form`. diff --git a/plugins/catalog-import/api-report.md b/plugins/catalog-import/api-report.md index f507967d37..7397bfad1d 100644 --- a/plugins/catalog-import/api-report.md +++ b/plugins/catalog-import/api-report.md @@ -238,7 +238,7 @@ export type PreparePullRequestFormProps< UseFormReturn, 'formState' | 'register' | 'control' | 'setValue' > & { - values: UnpackNestedValue; + values: TFieldValues; }, ) => React_2.ReactNode; }; diff --git a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx index 079ed57022..f0d84f13a4 100644 --- a/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx +++ b/plugins/catalog-import/src/components/StepPrepareCreatePullRequest/PreparePullRequestForm.tsx @@ -18,7 +18,6 @@ import React from 'react'; import { FormProvider, SubmitHandler, - UnpackNestedValue, useForm, UseFormProps, UseFormReturn, @@ -39,7 +38,7 @@ export type PreparePullRequestFormProps< UseFormReturn, 'formState' | 'register' | 'control' | 'setValue' > & { - values: UnpackNestedValue; + values: TFieldValues; }, ) => React.ReactNode; };