From a7602d85524af7cb0f0bee9bce4aaa0037caa265 Mon Sep 17 00:00:00 2001 From: Emiliano Barbosa Date: Fri, 16 Dec 2016 23:53:03 -0200 Subject: [PATCH] WIP #5: melhorar o feedback do login --- src/App.js | 33 ++++++++++++++++++++++----------- src/BestTimes.js | 2 +- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/App.js b/src/App.js index d29135c..ce8a46c 100644 --- a/src/App.js +++ b/src/App.js @@ -42,6 +42,14 @@ class App extends Component { // User is signed in. var displayName = user.displayName; var email = user.email; + var emailVerified = user.emailVerified; + var photoURL = user.photoURL; + var uid = user.uid; + var providerData = user.providerData; + user.getToken().then(function(accessToken) { + document.getElementById('sign-in').textContent = 'Sair'; + document.getElementById('firebaseui-auth-container').textContent = displayName; + }); this.setState({ email, displayName, @@ -50,9 +58,9 @@ class App extends Component { this.loadTimes(); } else { // User is signed out. - document.getElementById('sign-in-status').textContent = 'Signed out'; - document.getElementById('sign-in').textContent = 'Sign in'; - document.getElementById('account-details').textContent = 'null'; + document.getElementById('sign-in-status').textContent = 'Entre e participe'; + document.getElementById('sign-in').textContent = 'Logar'; + document.getElementById('account-details').textContent = ''; } }); } @@ -182,21 +190,24 @@ class App extends Component {

Cronômetro de Cubo Mágico

+

Inicie e pare o cronômetro teclando os dois Controls ou os dois Commands

Armazene e melhore seu tempo!

-
-
-
-
- -
+
+
+
+
+
+
+
+
-
- +
+