mattermost-mobile/app/screens/settings/notification_settings/index.js
enahum adbaead58e RN-321 Update Settings and Notifications UX/UI Screens (#879)
* Fix Android and iOS flow

* Own review

* RN-321 Update Settings and Notifications UX/UI Screens

* Fix style for separator in android modals

* Feedback review
2017-09-08 15:38:50 -03:00

34 lines
1.1 KiB
JavaScript

// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {getCurrentUser} from 'mattermost-redux/selectors/entities/users';
import {getMyPreferences} from 'mattermost-redux/selectors/entities/preferences';
import {handleUpdateUserNotifyProps} from 'app/actions/views/account_notifications';
import {getTheme} from 'app/selectors/preferences';
import NotificationSettings from './notification_settings';
function mapStateToProps(state, ownProps) {
return {
...ownProps,
config: state.entities.general.config,
currentUser: getCurrentUser(state),
myPreferences: getMyPreferences(state),
updateMeRequest: state.requests.users.updateMe,
theme: getTheme(state)
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
handleUpdateUserNotifyProps
}, dispatch)
};
}
export default connect(mapStateToProps, mapDispatchToProps)(NotificationSettings);