Feature: Create Profile Component
Build a Profile component that displays the current user’s profile image retrieved from the backend. The component should also act as a navigation element, so when clicked, it routes the user to the Profile/Main page.
Requirements
- Fetch current session user data from backend API
- Specifically retrieve the user’s profile picture
- Display the profile picture in the navigation or UI location where the component will be used
- Clicking the profile image redirects to Profile/Main page
- Handle fallback image if the user has no profile picture
Acceptance Criteria
- Component successfully calls backend API and loads the active user's profile image
- Profile picture is visible in UI (e.g., navbar or top-right corner)
- Clicking image routes to the Profile/Main page
- Displays default placeholder image if no profile picture exists
- No console or type errors
Feature: Create Profile Component
Build a Profile component that displays the current user’s profile image retrieved from the backend. The component should also act as a navigation element, so when clicked, it routes the user to the Profile/Main page.
Requirements
Acceptance Criteria