diff options
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() { |