diff --git a/FrontEnd/src/components/HeaderFooter/header/navbar/Profile.jsx b/FrontEnd/src/components/HeaderFooter/header/navbar/Profile.jsx index a65c440a..828695f9 100644 --- a/FrontEnd/src/components/HeaderFooter/header/navbar/Profile.jsx +++ b/FrontEnd/src/components/HeaderFooter/header/navbar/Profile.jsx @@ -1,16 +1,27 @@ -import avatar_image from './Avatar.png'; -import css from './Profile.module.css'; -import { Link } from 'react-router-dom'; -import Logout from './Logout'; +import { Link, useNavigate } from 'react-router-dom'; + +import { useUser } from '../../../../hooks'; + import DropdownMenu from './DropdownMenu'; +import Logout from './Logout'; +import css from './Profile.module.css'; +import avatar_image from './Avatar.png'; + function Profile() { + const { user } = useUser(); + const navigate = useNavigate(); + const navigateToProfile = () => { + navigate(`/profile-detail/${user.profile_id}`); + }; + return (
Профіль