-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathindex.jsx
More file actions
37 lines (30 loc) · 973 Bytes
/
index.jsx
File metadata and controls
37 lines (30 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {getReviewsDetails, getYourPrsDetails} from '../../actions';
import {getSidebarData} from 'src/selectors';
import SidebarRight from './sidebar_right.jsx';
function mapStateToProps(state) {
const {username, mentions, reviews, yourPrs, yourAssignments, unreads, enterpriseURL, orgs, rhsState} = getSidebarData(state);
return {
username,
reviews,
yourPrs,
mentions,
yourAssignments,
unreads,
enterpriseURL,
orgs,
rhsState,
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
getYourPrsDetails,
getReviewsDetails,
}, dispatch),
};
}
export default connect(mapStateToProps, mapDispatchToProps)(SidebarRight);