forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
28 lines (22 loc) · 776 Bytes
/
index.js
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
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {verifyUserEmail} from 'mattermost-redux/actions/users';
import {getConfig} from 'mattermost-redux/selectors/entities/general';
import DoVerifyEmail from './do_verify_email.jsx';
function mapStateToProps(state) {
const config = getConfig(state);
const siteName = config.SiteName;
return {
siteName,
};
}
function mapDispatchToProps(dispatch) {
return {
actions: {
verifyUserEmail: bindActionCreators(verifyUserEmail, dispatch),
},
};
}
export default connect(mapStateToProps, mapDispatchToProps)(DoVerifyEmail);