Commit 2415f035 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix: product display;

parent 44c36057
...@@ -15,8 +15,6 @@ import { AddShoppingCart } from "@mui/icons-material"; ...@@ -15,8 +15,6 @@ import { AddShoppingCart } from "@mui/icons-material";
import { ShoppingCart } from "@mui/icons-material"; import { ShoppingCart } from "@mui/icons-material";
import { RemoveShoppingCart } from "@mui/icons-material"; import { RemoveShoppingCart } from "@mui/icons-material";
import { UserContext } from "@/pages/_app"; import { UserContext } from "@/pages/_app";
import axios from "axios";
import { headers } from "../../next.config";
export default function ProductCard({ export default function ProductCard({
product, product,
...@@ -35,7 +33,7 @@ export default function ProductCard({ ...@@ -35,7 +33,7 @@ export default function ProductCard({
*/ */
return ( return (
<div <div
className="p-1 m-1 w-[300px] inline-block bg-white rounded hover:shadow duration-300" className="p-1 m-1 w-[300px] mx-auto inline-block bg-white rounded hover:shadow duration-300"
sx={{ sx={{
m: 1, m: 1,
px: 1, px: 1,
......
...@@ -65,6 +65,7 @@ export default function Stock() { ...@@ -65,6 +65,7 @@ export default function Stock() {
m: 1, m: 1,
px: 1, px: 1,
width: 300, width: 300,
mx: "auto",
height: 500, height: 500,
display: "inline-block", display: "inline-block",
}} }}
......
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