Commit 50ed5394 authored by Shaphen Pangburn's avatar Shaphen Pangburn

[AFP-48 Shaphen Pangburn]: Only show user login notice when logged out

parent 6dfe5cf9
...@@ -91,7 +91,7 @@ export default class ProductItem extends Component { ...@@ -91,7 +91,7 @@ export default class ProductItem extends Component {
{ "Save " + this.props.item.promo + "% on this item!"} { "Save " + this.props.item.promo + "% on this item!"}
</p> : ""} </p> : ""}
<form onSubmit={ e => this.handleSubmit(e, this.props.item) } className="add-cart-and-quantity"> <form onSubmit={ e => this.handleSubmit(e, this.props.item) } className="add-cart-and-quantity">
<p id="please-log-in-notice">Log in to Add to Cart</p> { this.props.user?.currentUser ? "" :<p id="please-log-in-notice">Log in to Add to Cart</p>}
<input <input
className="order-quantity" className="order-quantity"
type="number" type="number"
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
position: absolute; position: absolute;
bottom: 47px; bottom: 47px;
left: 22px; left: 22px;
padding: 5px 10px; padding: 3px 10px;
border-radius: 5px; border-radius: 5px;
background-color: rgb(248, 76, 76); background-color: rgb(248, 76, 76);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment