diff options
author | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:04:13 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-06 23:11:58 -0700 |
commit | d8bd57901e33a7057e26e782e295099ffcc0da89 (patch) | |
tree | e12dfc8cad42b1576756d19d7fbfd82646a009bf /webapp/components/analytics/team_analytics/index.js | |
parent | 7bc8e9a08dfde56387f946fdf5086252aa4d0491 (diff) | |
download | chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.gz chat-d8bd57901e33a7057e26e782e295099ffcc0da89.tar.bz2 chat-d8bd57901e33a7057e26e782e295099ffcc0da89.zip |
Removing webapp
Diffstat (limited to 'webapp/components/analytics/team_analytics/index.js')
-rw-r--r-- | webapp/components/analytics/team_analytics/index.js | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/webapp/components/analytics/team_analytics/index.js b/webapp/components/analytics/team_analytics/index.js deleted file mode 100644 index fe53a1559..000000000 --- a/webapp/components/analytics/team_analytics/index.js +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. -// See License.txt for license information. - -import {connect} from 'react-redux'; -import {bindActionCreators} from 'redux'; -import {getTeams} from 'mattermost-redux/actions/teams'; -import {getProfilesInTeam} from 'mattermost-redux/actions/users'; - -import {getTeamsList} from 'mattermost-redux/selectors/entities/teams'; -import BrowserStore from 'stores/browser_store.jsx'; - -import TeamAnalytics from './team_analytics.jsx'; - -const LAST_ANALYTICS_TEAM = 'last_analytics_team'; - -function mapStateToProps(state, ownProps) { - const teams = getTeamsList(state); - const teamId = BrowserStore.getGlobalItem(LAST_ANALYTICS_TEAM, teams.length > 0 ? teams[0].id : ''); - - return { - initialTeam: state.entities.teams.teams[teamId], - teams, - ...ownProps - }; -} - -function mapDispatchToProps(dispatch) { - return { - actions: bindActionCreators({ - getTeams, - getProfilesInTeam - }, dispatch) - }; -} - -export default connect(mapStateToProps, mapDispatchToProps)(TeamAnalytics); |