From 12bd234e71defdcf1b01a53aef147ada972e1ecf Mon Sep 17 00:00:00 2001 From: Felix Mosheev <9304194+felixmosh@users.noreply.github.com> Date: Wed, 24 Apr 2024 11:22:32 +0300 Subject: [PATCH] Revert "fix: Form static props are recognized as any in TS" This reverts commit a8953c66a46776f0924db39ebd5feef73ef832ff. --- src/Form.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Form.tsx b/src/Form.tsx index fa09f4c..0fa9123 100644 --- a/src/Form.tsx +++ b/src/Form.tsx @@ -101,11 +101,9 @@ class Form extends Component { } } -const HoistedForm = hoistNonReactStatics( +export default hoistNonReactStatics( React.forwardRef((props: IFormProps, ref) => (
)), Form ); - -export default HoistedForm;