Add user settings modal
This commit is contained in:
@@ -3,17 +3,10 @@ import { connect } from 'react-redux';
|
||||
|
||||
import { currentUserSelector, notificationsForCurrentUserSelector } from '../selectors';
|
||||
import {
|
||||
clearCurrentUserEmailUpdateError,
|
||||
clearCurrentUserPasswordUpdateError,
|
||||
clearCurrentUserUsernameUpdateError,
|
||||
deleteNotification,
|
||||
logout,
|
||||
openUserSettingsModal,
|
||||
openUsersModal,
|
||||
updateCurrentUser,
|
||||
updateCurrentUserEmail,
|
||||
updateCurrentUserPassword,
|
||||
updateCurrentUserUsername,
|
||||
uploadCurrentUserAvatar,
|
||||
} from '../actions/entry';
|
||||
import Header from '../components/Header';
|
||||
|
||||
@@ -33,14 +26,7 @@ const mapDispatchToProps = (dispatch) =>
|
||||
{
|
||||
onUsers: openUsersModal, // TODO: rename
|
||||
onNotificationDelete: deleteNotification,
|
||||
onUserUpdate: updateCurrentUser,
|
||||
onUserAvatarUpload: uploadCurrentUserAvatar,
|
||||
onUserUsernameUpdate: updateCurrentUserUsername,
|
||||
onUserUsernameUpdateMessageDismiss: clearCurrentUserUsernameUpdateError,
|
||||
onUserEmailUpdate: updateCurrentUserEmail,
|
||||
onUserEmailUpdateMessageDismiss: clearCurrentUserEmailUpdateError,
|
||||
onUserPasswordUpdate: updateCurrentUserPassword,
|
||||
onUserPasswordUpdateMessageDismiss: clearCurrentUserPasswordUpdateError,
|
||||
onUserSettings: openUserSettingsModal,
|
||||
onLogout: logout,
|
||||
},
|
||||
dispatch,
|
||||
|
||||
Reference in New Issue
Block a user