aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.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/app/components/GlobalMessagesContainer.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/app/components/GlobalMessagesContainer.tsx')
-rw-r--r--server/sonar-web/src/main/js/app/components/GlobalMessagesContainer.tsx6
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)
});