aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/withAppState.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/withAppState.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/withAppState.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/withAppState.tsx b/server/sonar-web/src/main/js/components/withAppState.tsx
index 958c37c441a..37ff073e1c7 100644
--- a/server/sonar-web/src/main/js/components/withAppState.tsx
+++ b/server/sonar-web/src/main/js/components/withAppState.tsx
@@ -19,15 +19,14 @@
*/
import * as React from 'react';
import { connect } from 'react-redux';
-import { AppState } from '../app/types';
import { Store, getAppState } from '../store/rootReducer';
export function withAppState<P>(
- WrappedComponent: React.ComponentClass<P & { appState: Partial<AppState> }>
+ WrappedComponent: React.ComponentClass<P & { appState: Partial<T.AppState> }>
) {
const wrappedDisplayName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
- class Wrapper extends React.Component<P & { appState: AppState }> {
+ class Wrapper extends React.Component<P & { appState: T.AppState }> {
static displayName = `withAppState(${wrappedDisplayName})`;
render() {