From fc1feaaf180be1fc54192812b447c3fecd444b8c Mon Sep 17 00:00:00 2001 From: layshidani Date: Tue, 11 Jun 2019 22:36:45 -0300 Subject: [PATCH] Improvements on Saloon page, remove unused code on home page --- src/pages/home.js | 3 +-- src/pages/saloon.js | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/home.js b/src/pages/home.js index 69dc7474..15de2801 100644 --- a/src/pages/home.js +++ b/src/pages/home.js @@ -17,7 +17,6 @@ class Home extends Component { email: '', password: '', displayName: '', - userType: 'saloon' }; } @@ -48,7 +47,7 @@ class Home extends Component { } signIn = () => { - const { email, password, userType } = this.state; + const { email, password } = this.state; this.props.signInWithEmailAndPassword(email, password) .then((resp) => { const id = resp.user.uid; diff --git a/src/pages/saloon.js b/src/pages/saloon.js index 01394a4b..e96fddb8 100644 --- a/src/pages/saloon.js +++ b/src/pages/saloon.js @@ -122,6 +122,7 @@ class Saloon extends Component { return (

Olá {this.state.name}, você está no Salão

+

Clique nos itens para adicioná-los ao pedido.

Café da manhã:

{ @@ -149,7 +150,7 @@ class Saloon extends Component { }
-

Pedido

+

Resumo do Pedido

{ this.state.order.map((item, i) => { @@ -158,8 +159,8 @@ class Saloon extends Component {

Produto: {item.title} - Qtd: {item.quantity} - Subtotal: R$ {item.price * item.quantity}

- +
) })