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/app/components/GlobalMessagesContainer.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/app/components/GlobalMessagesContainer.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx b/server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx index d8366702bc8..e9dfd8a6e08 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx +++ b/server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx @@ -19,10 +19,10 @@ */ import { connect } from 'react-redux'; import GlobalMessages from '../../components/controls/GlobalMessages'; -import { getGlobalMessages } from '../../store/rootReducer'; -import { closeGlobalMessage } from '../../store/globalMessages/duck'; +import { getGlobalMessages, Store } from '../../store/rootReducer'; +import { closeGlobalMessage } from '../../store/globalMessages'; -const mapStateToProps = (state: any) => ({ +const mapStateToProps = (state: Store) => ({ messages: getGlobalMessages(state) }); |