diff --git a/react-components/src/higher-order-components/withSuppressRevealEvents.tsx b/react-components/src/higher-order-components/withSuppressRevealEvents.tsx index 0e3d943b06b..d0370d7d756 100644 --- a/react-components/src/higher-order-components/withSuppressRevealEvents.tsx +++ b/react-components/src/higher-order-components/withSuppressRevealEvents.tsx @@ -2,10 +2,16 @@ * Copyright 2023 Cognite AS */ -import { useRef, type ComponentType, type JSX, useEffect, type ReactElement } from 'react'; - -export function withSuppressRevealEvents( - Component: ComponentType +import { + useRef, + type ComponentType, + useEffect, + type ReactElement, + type FunctionComponent +} from 'react'; + +export function withSuppressRevealEvents( + Component: FunctionComponent ): ComponentType { return function SuppressRevealEvents(props: T): ReactElement { const divRef = useRef(null);