Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Global nav #536

Merged
merged 3 commits into from
Jul 19, 2023
Merged

Global nav #536

merged 3 commits into from
Jul 19, 2023

Conversation

erikguntner
Copy link
Collaborator

This PR includes the following updates to the global nav bar:

  • Adding the Settings, Help, and Logout items to the dropdown menu
  • Creating the settings page
  • Display user initials in Avatar

We aren't currently collecting the user's name so right now it uses a fake name.

@erikguntner
Copy link
Collaborator Author

Screen.Recording.2023-07-11.at.8.14.22.PM.mov

@erikguntner erikguntner linked an issue Jul 12, 2023 that may be closed by this pull request
6 tasks
@erikguntner erikguntner mentioned this pull request Jul 12, 2023
6 tasks

function getInitials(name: string) {
const splitName = name.split(' ');
return splitName[0][0] + splitName[1][0];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have more checks. For example, check if splitName has more than 1 element.

Copy link
Collaborator Author

@erikguntner erikguntner Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulespinosa Thanks! Added a check for length and also to use the last element in case it's not just first and last name.

Copy link
Member

@paulespinosa paulespinosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@erikguntner erikguntner merged commit 5a50d03 into main Jul 19, 2023
1 check passed
@Joshua-Douglas Joshua-Douglas deleted the global-nav branch December 12, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global NavBar - Desktop, Tablet
2 participants