aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/ui
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/ui
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/ui')
-rw-r--r--server/sonar-web/src/main/js/components/ui/Avatar.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/ui/Avatar.tsx b/server/sonar-web/src/main/js/components/ui/Avatar.tsx
index 7657c13419c..ad31cabb65d 100644
--- a/server/sonar-web/src/main/js/components/ui/Avatar.tsx
+++ b/server/sonar-web/src/main/js/components/ui/Avatar.tsx
@@ -21,7 +21,7 @@ import * as React from 'react';
import { connect } from 'react-redux';
import * as classNames from 'classnames';
import GenericAvatar from './GenericAvatar';
-import { getGlobalSettingValue } from '../../store/rootReducer';
+import { getGlobalSettingValue, Store } from '../../store/rootReducer';
interface Props {
className?: string;
@@ -55,7 +55,7 @@ function Avatar(props: Props) {
);
}
-const mapStateToProps = (state: any) => ({
+const mapStateToProps = (state: Store) => ({
enableGravatar: (getGlobalSettingValue(state, 'sonar.lf.enableGravatar') || {}).value === 'true',
gravatarServerUrl: (getGlobalSettingValue(state, 'sonar.lf.gravatarServerUrl') || {}).value
});