diff options
author | philippe-perrin-sonarsource <philippe.perrin@sonarsource.com> | 2022-01-27 11:06:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-01-27 20:03:05 +0000 |
commit | dca8354af94e9feb46ea2312857e000aaa232372 (patch) | |
tree | 336b645749ab1fb1b1abdac19a69c70257e98b68 /server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx | |
parent | 85f744be340d8f404978341186dd77cc05584f31 (diff) | |
download | sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.tar.gz sonarqube-dca8354af94e9feb46ea2312857e000aaa232372.zip |
SONAR-15945 Get rid of T namespace in sonar-web
Diffstat (limited to 'server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx b/server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx index d258303c773..4b7840d0114 100644 --- a/server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx +++ b/server/sonar-web/src/main/js/components/hoc/whenLoggedIn.tsx @@ -20,11 +20,12 @@ import * as React from 'react'; import handleRequiredAuthentication from '../../helpers/handleRequiredAuthentication'; import { isLoggedIn } from '../../helpers/users'; +import { CurrentUser } from '../../types/types'; import { getWrappedDisplayName } from './utils'; import { withCurrentUser } from './withCurrentUser'; export function whenLoggedIn<P>(WrappedComponent: React.ComponentType<P>) { - class Wrapper extends React.Component<P & { currentUser: T.CurrentUser }> { + class Wrapper extends React.Component<P & { currentUser: CurrentUser }> { static displayName = getWrappedDisplayName(WrappedComponent, 'whenLoggedIn'); componentDidMount() { |