aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/search
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/app/components/search')
-rw-r--r--server/sonar-web/src/main/js/app/components/search/Search.tsx5
-rw-r--r--server/sonar-web/src/main/js/app/components/search/SearchResult.tsx3
2 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/app/components/search/Search.tsx b/server/sonar-web/src/main/js/app/components/search/Search.tsx
index 9d91d8b3acd..209b21795f5 100644
--- a/server/sonar-web/src/main/js/app/components/search/Search.tsx
+++ b/server/sonar-web/src/main/js/app/components/search/Search.tsx
@@ -34,15 +34,14 @@ import { getSuggestions } from '../../../api/components';
import { translate, translateWithParameters } from '../../../helpers/l10n';
import { scrollToElement } from '../../../helpers/scrolling';
import { getProjectUrl } from '../../../helpers/urls';
-import { AppState, CurrentUser } from '../../types';
import './Search.css';
const SearchResults = lazyLoad(() => import('./SearchResults'));
const SearchResult = lazyLoad(() => import('./SearchResult'));
interface OwnProps {
- appState: Pick<AppState, 'organizationsEnabled'>;
- currentUser: CurrentUser;
+ appState: Pick<T.AppState, 'organizationsEnabled'>;
+ currentUser: T.CurrentUser;
}
type Props = OwnProps & WithRouterProps;
diff --git a/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx b/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx
index 7dd26bd190d..c75fd6719b3 100644
--- a/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx
+++ b/server/sonar-web/src/main/js/app/components/search/SearchResult.tsx
@@ -25,10 +25,9 @@ import QualifierIcon from '../../../components/icons-components/QualifierIcon';
import ClockIcon from '../../../components/icons-components/ClockIcon';
import Tooltip from '../../../components/controls/Tooltip';
import { getProjectUrl } from '../../../helpers/urls';
-import { AppState } from '../../types';
interface Props {
- appState: Pick<AppState, 'organizationsEnabled'>;
+ appState: Pick<T.AppState, 'organizationsEnabled'>;
component: ComponentResult;
innerRef: (componentKey: string, node: HTMLElement | null) => void;
onClose: () => void;