Ignore:
Timestamp:
12/13/22 22:38:11 (19 months ago)
Author:
Nace Gjorgjievski <nace.gorgievski123@…>
Branches:
master
Parents:
113029b
Message:

Final Version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • frontend/src/components/Product.js

    r113029b ra2e5735  
    5454      <div
    5555        style={{
    56           width: "100%",
    5756          display: "flex",
    58           justifyContent: "center",
     57          justifyContent: "space-around",
    5958          alignItems: "center",
    6059        }}
    6160      >
    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>
    7164      </div>
    72       <div className="product__addToCart" style={{ marginTop: "15px" }}>
     65      <div
     66        className="product__addToCart"
     67        style={{ marginTop: "15px", display: "flex", justifyContent: "center" }}
     68      >
    7369        <button onClick={addToCartHandler}>
    7470          <ShoppingBasketIcon />
    7571        </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>
    7691      </div>
    7792    </div>
Note: See TracChangeset for help on using the changeset viewer.