diff options
Diffstat (limited to 'webapp/components/sidebar_right/index.js')
-rw-r--r-- | webapp/components/sidebar_right/index.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/webapp/components/sidebar_right/index.js b/webapp/components/sidebar_right/index.js new file mode 100644 index 000000000..126ffc776 --- /dev/null +++ b/webapp/components/sidebar_right/index.js @@ -0,0 +1,17 @@ +// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import {connect} from 'react-redux'; +import SidebarRight from './sidebar_right.jsx'; + +function mapStateToProps(state, ownProps) { + return { + ...ownProps, + postRightVisible: Boolean(state.views.rhs.selectedPostId), + fromSearch: state.views.rhs.fromSearch, + fromFlaggedPosts: state.views.rhs.fromFlaggedPosts, + fromPinnedPosts: state.views.rhs.fromPinnedPosts + }; +} + +export default connect(mapStateToProps)(SidebarRight); |