-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
firebase upgrade to version 9.*.* #1406
base: main
Are you sure you want to change the base?
Conversation
@WOLFIEEEE is attempting to deploy a commit to the Carbon Team on Vercel. A member of the Team first needs to authorize it. |
This pull request introduces 1 alert when merging d012c81 into 1395ed8 - view on LGTM.com new alerts:
|
Solving issue #1294 |
@mfix22 hey can you please review it? |
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.
Thanks so much for working on this @WOLFIEEEE, and so sorry for the incredible delay—I've been very busy.
Can you please run prettier against all the changes? It's difficult to assess the diff without that 🙂
Also leaving a few other nits for review, but besides that this LGTM.
Again, thanks so much!
provider.setCustomParameters({ | ||
allow_signup: 'true', | ||
}) | ||
return login(provider) | ||
} | ||
|
||
export default firebase.apps.length ? firebase : null | ||
export default FirebaseApp |
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.
Can we still make this:
getApps().length ? firebase : null
so that we don't need to call getApps()
in other files?
@@ -48,7 +49,7 @@ function Drawer(props) { | |||
function LoginButton({ isVisible, toggleVisibility }) { | |||
const user = useAuth() | |||
|
|||
if (!firebase) { | |||
if (getApps().length === 0) { |
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.
If we make the other change suggested below, we don't need to make this change
if (firebase) { | ||
firebase.auth().onAuthStateChanged(newUser => setState(newUser)) | ||
|
||
if(getApps().length > 0) |
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.
Same comment as below.
Closes #1294