|
|
|
@@ -21,7 +21,8 @@ import LogoutButton from "./LogoutButton/LogoutButton"; |
|
|
|
import AboutButton from "./AboutButton/AboutButton"; |
|
|
|
import PrivacyPolicyButton from "./PrivacyPolicyButton/PrivacyPolicyButton"; |
|
|
|
import PricesButton from "./PricesButton/PricesButton"; |
|
|
|
import { ADMIN_HOME_PAGE } from "../../../constants/pages"; |
|
|
|
import { ADMIN_HOME_PAGE, PROFILE_PAGE } from "../../../constants/pages"; |
|
|
|
import { replaceInRoute } from "../../../util/helpers/routeHelpers"; |
|
|
|
|
|
|
|
export const MyProfile = (props) => { |
|
|
|
const { t } = useTranslation(); |
|
|
|
@@ -62,7 +63,9 @@ export const MyProfile = (props) => { |
|
|
|
} |
|
|
|
}, [profile]); |
|
|
|
const seeMyProfile = () => { |
|
|
|
history.push(`/profile/${userId}`); |
|
|
|
history.push(replaceInRoute(PROFILE_PAGE, { |
|
|
|
profileId: userId |
|
|
|
})); |
|
|
|
props.closePopover(); |
|
|
|
}; |
|
|
|
const goToAdminHome = () => { |