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}

- +
) })