Skip to content

Commit

Permalink
Revert "fix: Form static props are recognized as any in TS"
Browse files Browse the repository at this point in the history
This reverts commit a8953c6.
  • Loading branch information
felixmosh committed Apr 24, 2024
1 parent 7bbb433 commit 12bd234
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,9 @@ class Form extends Component<IFormProps & { forwardedRef: any }> {
}
}

const HoistedForm = hoistNonReactStatics(
export default hoistNonReactStatics(
React.forwardRef<Formsy, IFormProps>((props: IFormProps, ref) => (
<Form {...props} forwardedRef={ref} />
)),
Form
);

export default HoistedForm;

0 comments on commit 12bd234

Please sign in to comment.