aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-09-03 09:21:22 +0200
committerSonarTech <sonartech@sonarsource.com>2018-09-03 20:20:51 +0200
commitf6fd6fb056ca6c3de3637cfeafb53c30815ee12d (patch)
treebdf6b3a660066ffe6aaf644f6969e4353a7e21c8 /server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
parentf332f24ea986de3267aedcc9ba8ec1441ff4226b (diff)
downloadsonarqube-f6fd6fb056ca6c3de3637cfeafb53c30815ee12d.tar.gz
sonarqube-f6fd6fb056ca6c3de3637cfeafb53c30815ee12d.zip
finish typing redux store and simplify connected components (#675)
Diffstat (limited to 'server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx')
-rw-r--r--server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx b/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
index d71cec022b5..5be1bbc5816 100644
--- a/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
+++ b/server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx
@@ -24,8 +24,8 @@ import Tooltip from './Tooltip';
import HomeIcon from '../icons-components/HomeIcon';
import { CurrentUser, isLoggedIn, HomePage, isSameHomePage } from '../../app/types';
import { translate } from '../../helpers/l10n';
-import { getCurrentUser } from '../../store/rootReducer';
-import { setHomePage } from '../../store/users/actions';
+import { getCurrentUser, Store } from '../../store/rootReducer';
+import { setHomePage } from '../../store/users';
interface StateProps {
currentUser: CurrentUser;
@@ -81,7 +81,7 @@ class HomePageSelect extends React.PureComponent<Props> {
}
}
-const mapStateToProps = (state: any): StateProps => ({
+const mapStateToProps = (state: Store): StateProps => ({
currentUser: getCurrentUser(state)
});