diff --git a/products/ASC.People/Client/src/pages/Home/Section/Body/SimpleUserRow.js b/products/ASC.People/Client/src/pages/Home/Section/Body/SimpleUserRow.js index e5fcd3a145..faa839413f 100644 --- a/products/ASC.People/Client/src/pages/Home/Section/Body/SimpleUserRow.js +++ b/products/ASC.People/Client/src/pages/Home/Section/Body/SimpleUserRow.js @@ -19,7 +19,6 @@ const SimpleUserRow = ({ selectUser, selectGroup, deselectUser, - homepage, setChangeEmailDialogVisible, setChangePasswordDialogVisible, setDeleteProfileDialogVisible, @@ -57,7 +56,7 @@ const SimpleUserRow = ({ }; const onEditClick = () => { - history.push(`${homepage}/edit/${userName}`); + history.push(`${config.homepage}/edit/${userName}`); }; const toggleChangeEmailDialog = () => { @@ -116,7 +115,7 @@ const SimpleUserRow = ({ }; const onReassignDataClick = (e) => { - history.push(`${homepage}/reassign/${userName}`); + history.push(`${config.homepage}/reassign/${userName}`); }; const onDeletePersonalDataClick = (e) => { @@ -281,7 +280,6 @@ const SimpleUserRow = ({ export default withRouter( inject(({ auth, peopleStore }, { person }) => { return { - homepage: config.homepage, isAdmin: auth.isAdmin, currentUserId: auth.userStore.user.id, checked: peopleStore.selectionStore.selection.some( diff --git a/products/ASC.People/Client/src/pages/Profile/Section/Body/index.js b/products/ASC.People/Client/src/pages/Profile/Section/Body/index.js index a17c851580..9d3bd81a5f 100644 --- a/products/ASC.People/Client/src/pages/Profile/Section/Body/index.js +++ b/products/ASC.People/Client/src/pages/Profile/Section/Body/index.js @@ -99,7 +99,7 @@ class SectionBodyContent extends React.PureComponent { onEditProfileClick = () => this.props.history.push( - `${this.props.settings.homepage}/edit/${this.props.profile.userName}` + `${config.homepage}/edit/${this.props.profile.userName}` ); render() { @@ -195,8 +195,6 @@ class SectionBodyContent extends React.PureComponent { export default withRouter( inject(({ auth, peopleStore }) => ({ - settings: auth.settingsStore, - homepage: config.homepage, cultures: auth.settingsStore.cultures, culture: auth.settingsStore.culture, getPortalCultures: auth.settingsStore.getPortalCultures,