aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/hoc
diff options
context:
space:
mode:
authorWouter Admiraal <wouter.admiraal@sonarsource.com>2022-12-28 16:23:39 +0100
committersonartech <sonartech@sonarsource.com>2023-01-02 20:03:09 +0000
commit4da2fd9191d43a75c7a6c4cc848cd048e6700844 (patch)
tree85982aa98ff80e8312841b5e4b2b0aa8082f2c48 /server/sonar-web/src/main/js/components/hoc
parentf3c01c86ab9e7db644c40b4105c10b08ddfbd8a5 (diff)
downloadsonarqube-4da2fd9191d43a75c7a6c4cc848cd048e6700844.tar.gz
sonarqube-4da2fd9191d43a75c7a6c4cc848cd048e6700844.zip
[NO JIRA] Migrate Code tests to RTL
Diffstat (limited to 'server/sonar-web/src/main/js/components/hoc')
-rw-r--r--server/sonar-web/src/main/js/components/hoc/withKeyboardNavigation.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/hoc/withKeyboardNavigation.tsx b/server/sonar-web/src/main/js/components/hoc/withKeyboardNavigation.tsx
index f475e8805a4..89badf3e9de 100644
--- a/server/sonar-web/src/main/js/components/hoc/withKeyboardNavigation.tsx
+++ b/server/sonar-web/src/main/js/components/hoc/withKeyboardNavigation.tsx
@@ -37,7 +37,7 @@ export interface WithKeyboardNavigationProps {
}
export default function withKeyboardNavigation<P>(
- WrappedComponent: React.ComponentClass<P & Partial<WithKeyboardNavigationProps>>
+ WrappedComponent: React.ComponentType<P & Partial<WithKeyboardNavigationProps>>
) {
return class Wrapper extends React.Component<P & WithKeyboardNavigationProps> {
static displayName = getWrappedDisplayName(WrappedComponent, 'withKeyboardNavigation');