From 5002ce51d7ad9082f1066f5cadcb2ef23811f779 Mon Sep 17 00:00:00 2001 From: David Cho-Lerat Date: Tue, 21 Nov 2023 09:28:45 +0100 Subject: SONAR-21017 TypeScript: the `children` prop must now be explicit (see https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-typescript-definitions) --- server/sonar-web/design-system/src/theme/withTheme.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-web/design-system/src/theme') diff --git a/server/sonar-web/design-system/src/theme/withTheme.tsx b/server/sonar-web/design-system/src/theme/withTheme.tsx index 64e657fc57e..07713660df1 100644 --- a/server/sonar-web/design-system/src/theme/withTheme.tsx +++ b/server/sonar-web/design-system/src/theme/withTheme.tsx @@ -26,8 +26,8 @@ export interface ThemeProp { } export function withTheme

( - WrappedComponent: React.ComponentType

-): React.ComponentType

{ + WrappedComponent: React.ComponentType>, +): React.ComponentType> { return function WrappedComponentWithTheme(props: P) { const theme = useTheme(); -- cgit v1.2.3