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/post_view/post_info/index.js | 31 -------------------------- 1 file changed, 31 deletions(-) delete mode 100644 webapp/components/post_view/post_info/index.js (limited to 'webapp/components/post_view/post_info/index.js') diff --git a/webapp/components/post_view/post_info/index.js b/webapp/components/post_view/post_info/index.js deleted file mode 100644 index 041080da8..000000000 --- a/webapp/components/post_view/post_info/index.js +++ /dev/null @@ -1,31 +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 {removePost, addReaction} from 'mattermost-redux/actions/posts'; - -import {get, getBool} from 'mattermost-redux/selectors/entities/preferences'; - -import {Preferences} from 'utils/constants.jsx'; - -import PostInfo from './post_info.jsx'; - -function mapStateToProps(state, ownProps) { - return { - ...ownProps, - useMilitaryTime: getBool(state, Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.USE_MILITARY_TIME, false), - isFlagged: get(state, Preferences.CATEGORY_FLAGGED_POST, ownProps.post.id, null) != null - }; -} - -function mapDispatchToProps(dispatch) { - return { - actions: bindActionCreators({ - removePost, - addReaction - }, dispatch) - }; -} - -export default connect(mapStateToProps, mapDispatchToProps)(PostInfo); -- cgit v1.2.3-1-g7c22