From d8bd57901e33a7057e26e782e295099ffcc0da89 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 6 Sep 2017 23:04:13 -0700 Subject: Removing webapp --- webapp/components/rhs_thread/index.js | 37 ----------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 webapp/components/rhs_thread/index.js (limited to 'webapp/components/rhs_thread/index.js') diff --git a/webapp/components/rhs_thread/index.js b/webapp/components/rhs_thread/index.js deleted file mode 100644 index ed7618427..000000000 --- a/webapp/components/rhs_thread/index.js +++ /dev/null @@ -1,37 +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 {getPost, makeGetPostsForThread} from 'mattermost-redux/selectors/entities/posts'; -import {removePost} from 'mattermost-redux/actions/posts'; - -import RhsThread from './rhs_thread.jsx'; - -function makeMapStateToProps() { - const getPostsForThread = makeGetPostsForThread(); - - return function mapStateToProps(state, ownProps) { - const selected = getPost(state, state.views.rhs.selectedPostId); - let posts = []; - if (selected) { - posts = getPostsForThread(state, {rootId: selected.id, channelId: selected.channel_id}); - } - - return { - ...ownProps, - selected, - posts - }; - }; -} - -function mapDispatchToProps(dispatch) { - return { - actions: bindActionCreators({ - removePost - }, dispatch) - }; -} - -export default connect(makeMapStateToProps, mapDispatchToProps)(RhsThread); -- cgit v1.2.3-1-g7c22