-
Notifications
You must be signed in to change notification settings - Fork 53
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
Create account menu and login page #502
Conversation
An accounnt menu component which can be used to manage login state as well as display the logged in user and their account linking status.
Create the login page for the prs application.
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.
LGTM, just some minor comments
|
||
constructor(private auth: Auth) { | ||
this.auth.onAuthStateChanged((user) => { | ||
this.avatarUrl = user?.photoURL || DEFAULT_AVATAR_URL; |
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.
For more explicitness we could use nullish coalescing, same below.
this.avatarUrl = user?.photoURL || DEFAULT_AVATAR_URL; | |
this.avatarUrl = user?.photoURL ?? DEFAULT_AVATAR_URL; |
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.
We actually don't want nullish coalescing in this case because if the photoURL we get is ''
we want to use the default one instead.
3ab7322
to
dc253ff
Compare
This PR was merged into the repository by commit 50857c6. |
Create the login page for the prs application. PR Close #502
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
See individual commits.