From 1e0a21a703495082581a45bfdaa1b5d68e541200 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Thu, 24 Nov 2022 17:21:29 +0800 Subject: [PATCH] fix(console): remove redundant `forwardRef` from `DetailsForm` (#2526) --- packages/console/src/components/DetailsForm/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/console/src/components/DetailsForm/index.tsx b/packages/console/src/components/DetailsForm/index.tsx index 545d42feb..55a6fe28a 100644 --- a/packages/console/src/components/DetailsForm/index.tsx +++ b/packages/console/src/components/DetailsForm/index.tsx @@ -1,4 +1,3 @@ -import { forwardRef } from 'react'; import type { ReactNode } from 'react'; import SubmitFormChangesActionBar from '../SubmitFormChangesActionBar'; @@ -26,4 +25,4 @@ const DetailsForm = ({ isDirty, isSubmitting, onSubmit, onDiscard, children }: P ); }; -export default forwardRef(DetailsForm); +export default DetailsForm;