From 8ccfbf84e483ab65c5155aa408c2140772324df4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= <mateuszburzynski@gmail.com>
Date: Wed, 21 Sep 2022 12:53:04 +0200
Subject: [PATCH] Fixed type issue with `ComponentProps` from older
 `@types/react`

---
 src/types.ts | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/types.ts b/src/types.ts
index 599a568a3..f064fb81e 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,4 +1,9 @@
-import { ClassAttributes, ComponentClass, ComponentType } from 'react'
+import {
+  ClassAttributes,
+  ComponentClass,
+  ComponentType,
+  FunctionComponent,
+} from 'react'
 
 import { Action, AnyAction, Dispatch } from 'redux'
 
@@ -82,7 +87,7 @@ export type GetLibraryManagedProps<C> = JSX.LibraryManagedAttributes<
 export type ConnectedComponent<
   C extends ComponentType<any>,
   P
-> = ComponentType<P> &
+> = FunctionComponent<P> &
   NonReactStatics<C> & {
     WrappedComponent: C
   }