File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,15 @@ class App extends React.Component {
4949 } ;
5050
5151 state = {
52- signedIn : false ,
52+ isSignedIn : false ,
5353 } ;
5454
5555 /**
5656 * @inheritDoc
5757 */
5858 componentDidMount ( ) {
5959 this . unregisterAuthObserver = firebaseApp . auth ( ) . onAuthStateChanged (
60- ( user ) => this . setState ( { signedIn : ! ! user }
60+ ( user ) => this . setState ( { isSignedIn : ! ! user }
6161 ) ;
6262 }
6363
@@ -78,13 +78,13 @@ class App extends React.Component {
7878 < i className = { styles . logoIcon + ' material-icons' } > photo</ i > My App
7979 </ div >
8080 < div className = { styles . caption } > This is a cool demo app</ div >
81- { ! this . state . signedIn &&
81+ { ! this . state . isSignedIn &&
8282 < div >
8383 < StyledFirebaseAuth className = { styles . firebaseUi } uiConfig = { this . uiConfig }
8484 firebaseAuth = { firebaseApp . auth ( ) } />
8585 </ div >
8686 }
87- { this . state . signedIn &&
87+ { this . state . isSignedIn &&
8888 < div className = { styles . signedIn } >
8989 Hello { firebaseApp . auth ( ) . currentUser . displayName } . You are now signed In!
9090 < a className = { styles . button } onClick = { ( ) => firebaseApp . auth ( ) . signOut ( ) } > Sign-out</ a >
You can’t perform that action at this time.
0 commit comments