Changeset a2e5735 for frontend/src/components/Product.js
- Timestamp:
- 12/13/22 22:38:11 (19 months ago)
- Branches:
- master
- Parents:
- 113029b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/Product.js
r113029b ra2e5735 54 54 <div 55 55 style={{ 56 width: "100%",57 56 display: "flex", 58 justifyContent: " center",57 justifyContent: "space-around", 59 58 alignItems: "center", 60 59 }} 61 60 > 62 {product.countInStock > 0 ? ( 63 <span style={{ color: "green" }}> 64 <CheckIcon></CheckIcon>Залиха 65 </span> 66 ) : ( 67 <span style={{ color: "red" }}> 68 <ClearIcon></ClearIcon>Залиха 69 </span> 70 )} 61 <h5>H: {product.height}</h5> 62 <h5>W: {product.width}</h5> 63 <h5>L: {product.length}</h5> 71 64 </div> 72 <div className="product__addToCart" style={{ marginTop: "15px" }}> 65 <div 66 className="product__addToCart" 67 style={{ marginTop: "15px", display: "flex", justifyContent: "center" }} 68 > 73 69 <button onClick={addToCartHandler}> 74 70 <ShoppingBasketIcon /> 75 71 </button> 72 <div 73 style={{ 74 //width: "100%", 75 display: "flex", 76 justifyContent: "center", 77 alignItems: "center", 78 marginLeft: "10px", 79 }} 80 > 81 {product.countInStock > 0 ? ( 82 <span style={{ color: "green" }}> 83 <CheckIcon></CheckIcon>Залиха 84 </span> 85 ) : ( 86 <span style={{ color: "red" }}> 87 <ClearIcon></ClearIcon>Залиха 88 </span> 89 )} 90 </div> 76 91 </div> 77 92 </div>
Note:
See TracChangeset
for help on using the changeset viewer.