This commit is contained in:
louiscklaw
2025-06-15 12:56:29 +08:00
parent 8383be13bc
commit e791b01160
2 changed files with 13 additions and 9 deletions

View File

@@ -17,13 +17,15 @@ export function ProductList({ products, loading, sx, ...other }: Props) {
const renderLoading = () => <ProductItemSkeleton />;
const renderList = () =>
products.map((product) => (
<ProductItem
key={product.id}
product={product}
detailsHref={paths.product.details(product.id)}
/>
));
products.map((product) => {
return (
<ProductItem
key={product.id}
product={product}
detailsHref={paths.product.details(product.id)}
/>
);
});
return (
<>