diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-09-03 09:21:22 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-09-03 20:20:51 +0200 |
commit | f6fd6fb056ca6c3de3637cfeafb53c30815ee12d (patch) | |
tree | bdf6b3a660066ffe6aaf644f6969e4353a7e21c8 /server/sonar-web/src/main/js/components/controls/HomePageSelect.tsx | |
parent | f332f24ea986de3267aedcc9ba8ec1441ff4226b (diff) | |
download | sonarqube-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.tsx | 6 |
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) }); |