-
Notifications
You must be signed in to change notification settings - Fork 0
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
Nav bar account icon dropdown #35
Conversation
- Ability to navigate to Profile page of signed in user - Ability to logout
- Yarn format
@@ -32,20 +33,27 @@ const GoogleLogoutBtn = ({ | |||
unsetUser(); | |||
logoutSuccess("Successfully logged out!"); | |||
closeModal(); | |||
return response; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes: There was a bug from a previous commit whereby if a user logs in with a gmail account through the normal login (not the google one), they are given the google logout, which then didn't work. The issue persists in this commit. (Copied straight from my commit description because I'm lazy xD). Not sure how to fix this, so I'll pass it back to you
Not sure if the response is supposed to do anything. I logged it and it gives "Undefined", but to get rid of the lint warning, I just returned the response xD.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah its a useless response. Could even remove it.
…r-AccountIcon-Dropdown
…of params compared to BE Addition: Changed username so that it's the first half of the email address
…riate args - Fixed bug where it returned normal logout button even when it was a google account
…use/tradeforce into NavBar-AccountIcon-Dropdown
Motivation:
Changes in this commit:
-- Profile: redirects to profile page
-- Logout: logs user out and redirects them to homepage
Notes:
There was a bug from a previous commit whereby if a user logs in with a gmail account through the normal login (not the google one), they are given the google logout, which then didn't work. The issue persists in this commit
Material ui has a bug: where locking the scrollbar will introduce whitespace (see here). Worked around it by disabling scrollbar lock, but this allows the menu dropdown to float when user scrolls