From 6c4c706313eb765eb00c639f381646be74f27b69 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 25 Apr 2017 11:46:02 -0400 Subject: Start moving webapp to Redux (#6140) * Start moving webapp to Redux * Fix localforage import * Updates per feedback * Feedback udpates and a few fixes * Minor updates * Fix statuses, config not loading properly, getMe sanitizing too much * Fix preferences * Fix user autocomplete * Fix sessions and audits * Fix error handling for all redux actions * Use new directory structure for components and containers * Refresh immediately on logout instead of after timeout * Add fetch polyfill --- webapp/components/more_direct_channels/index.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 webapp/components/more_direct_channels/index.js (limited to 'webapp/components/more_direct_channels/index.js') diff --git a/webapp/components/more_direct_channels/index.js b/webapp/components/more_direct_channels/index.js new file mode 100644 index 000000000..a56f45886 --- /dev/null +++ b/webapp/components/more_direct_channels/index.js @@ -0,0 +1,25 @@ +// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import {connect} from 'react-redux'; +import {bindActionCreators} from 'redux'; +import {getProfiles, getProfilesInTeam} from 'mattermost-redux/actions/users'; + +import MoreDirectChannels from './more_direct_channels.jsx'; + +function mapStateToProps(state, ownProps) { + return { + ...ownProps + }; +} + +function mapDispatchToProps(dispatch) { + return { + actions: bindActionCreators({ + getProfiles, + getProfilesInTeam + }, dispatch) + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(MoreDirectChannels); -- cgit v1.2.3-1-g7c22