diff options
Diffstat (limited to 'server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx b/server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx index b1933e1e23a..26a903ad595 100644 --- a/server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx +++ b/server/sonar-web/src/main/js/components/hoc/withCurrentUser.tsx @@ -19,15 +19,14 @@ */ import * as React from 'react'; import { connect } from 'react-redux'; -import { CurrentUser } from '../../app/types'; import { Store, getCurrentUser } from '../../store/rootReducer'; export function withCurrentUser<P>( - WrappedComponent: React.ComponentClass<P & { currentUser: CurrentUser }> + WrappedComponent: React.ComponentClass<P & { currentUser: T.CurrentUser }> ) { const wrappedDisplayName = WrappedComponent.displayName || WrappedComponent.name || 'Component'; - class Wrapper extends React.Component<P & { currentUser: CurrentUser }> { + class Wrapper extends React.Component<P & { currentUser: T.CurrentUser }> { static displayName = `withCurrentUser(${wrappedDisplayName})`; render() { |