Skip to content

Commit

Permalink
feat(single product page): add styling changes to the page
Browse files Browse the repository at this point in the history
  • Loading branch information
KatiaGhezali committed Nov 21, 2023
1 parent 7f628c6 commit 48caf9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/components/ProductDetails/ProductDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ const ProductDetails = ({ productId }) => {
}
}, [productId, currentUser]);

console.log(productData);
const handleAddToCart = () => {
// Call addItemToCart with the entire product details
if (productData) {
Expand Down
6 changes: 3 additions & 3 deletions src/pages/singleproduct/[productId].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ function SingleProduct() {

{/* Conditionally render MapComponent based on screen size */}
{/* {productId && (
<div className="hidden lg:block lg:mt-16 lg:relative lg:z-0"> */}
{/* This will be visible on screens larger than or equal to lg (large) */}
{/* <MapComponent productId={productId} />
<div className="hidden lg:block lg:mt-16 lg:relative lg:z-0">
<MapComponent productId={productId} />
</div>
)} */}
</div>
Expand Down

0 comments on commit 48caf9d

Please sign in to comment.