diff options
Diffstat (limited to 'webapp/components/dot_menu/index.js')
-rw-r--r-- | webapp/components/dot_menu/index.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/webapp/components/dot_menu/index.js b/webapp/components/dot_menu/index.js new file mode 100644 index 000000000..eaa1e8d2c --- /dev/null +++ b/webapp/components/dot_menu/index.js @@ -0,0 +1,26 @@ +// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import {connect} from 'react-redux'; +import {bindActionCreators} from 'redux'; +import {flagPost, unflagPost, pinPost, unpinPost} from 'mattermost-redux/actions/posts'; + +import DotMenu from './dot_menu.jsx'; + +function mapStateToProps(state, ownProps) { + return ownProps; +} + +function mapDispatchToProps(dispatch) { + return { + actions: bindActionCreators({ + flagPost, + unflagPost, + pinPost, + unpinPost + }, dispatch) + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(DotMenu); + |