"update product list rendering"
This commit is contained in:
@@ -17,15 +17,13 @@ export function ProductList({ products, loading, sx, ...other }: Props) {
|
||||
const renderLoading = () => <ProductItemSkeleton />;
|
||||
|
||||
const renderList = () =>
|
||||
products.map((product) => {
|
||||
return (
|
||||
<ProductItem
|
||||
key={product.id}
|
||||
product={product}
|
||||
detailsHref={paths.product.details(product.id)}
|
||||
/>
|
||||
);
|
||||
});
|
||||
products.map((product) => (
|
||||
<ProductItem
|
||||
key={product.id}
|
||||
product={product}
|
||||
detailsHref={paths.product.details(product.id)}
|
||||
/>
|
||||
));
|
||||
|
||||
return (
|
||||
<>
|
||||
|
Reference in New Issue
Block a user