дописал каталог
This commit is contained in:
1 parent
223ec865e0
commit
e517c58d57
4 files changed
+68
-28
No files matched your search
@@ -1,13 +1,12 @@
|
||||
import React from "react";
|
||||
import type { Product } from "../../types/product";
|
||||
import ProductCard from "./ProductCard";
|
||||
import styles from "./Catalog.module.css";
|
||||
import { useAppSelector } from "../../app/hooks";
|
||||
|
||||
interface Props {
|
||||
products: Product[];
|
||||
}
|
||||
|
||||
const ProductGrid: React.FC<Props> = ({ products }) => {
|
||||
const ProductGrid: React.FC = () => {
|
||||
const {items: products} = useAppSelector(p => p.products)
|
||||
|
||||
return (
|
||||
<div className={styles.grid}>
|
||||
{products.map((p) => (
|
||||
|
||||
Reference in new issue
Block a user