HackYourFuture-CPH / fp-class19

MIT License
3 stars 1 forks source link

Fix: Update Header with link to user-profile, login/logout, user.name instead of user.email. #231

Closed Divyajg closed 2 years ago

Divyajg commented 2 years ago

User Story

Who: As a developer What: I want to update the links in the Header component Why: in order to have a specific link to user profile, login/logout and userName instead user_email.

Acceptance Criteria:

On clicking the profile icon, should direct to user-profile page, before login, it should be login and after login, it should be logout, display user_name instead of user email in the Header

Implementation Details:

Take user as props to Header component.

image