add ProfilePicture into header when user login

This commit is contained in:
p2405951 committed 2026-04-01 21:24:37 +02:00
1 parent 57d68b43de
commit 089995c84d
1 file changed
+8 -1
+8 -1
View File
@@ -12,6 +12,7 @@ import { AuthContext } from "../../contexts/Auth/AuthContext.js";
import { PendingMembersContext } from "../../contexts/PendingMembers/PendingMembersContext";
import Notification from "../../interfaces/notification.interface";
function Header() {
const { update, user } = useContext(AuthContext)!;
@@ -137,8 +138,14 @@ function Header() {
</button>
<Link to="/profile" className={styles.profileLink}>
<img className={styles.profileImg} src="/person.svg" alt="profile"/>
<img
className={styles.profileImg}
src={user?.profile_photo_path || "/person.svg"}
alt="profile"
/>
</Link>
</div>
</nav>