diff --git a/src/app/page.tsx b/src/app/page.tsx index 69a2b3b..fe3fb8c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,26 +1,21 @@ import MainCarousel from '~/components/carousels/mainCarousel'; -import { brands } from '~/mockData/mockBrands'; import { TopSellers } from '~/components/containerCards/containerCards'; import { createIconsTypes } from '~/utils/createIcons'; import { ContainerPage } from './container_page'; -// import CategoryCategory from '~/components/containerCards/containerCardsCategoty'; -// import { category } from '~/mockData/mockCategory'; -import BrandCategory from '~/components/containerCards/containerCardsBrands'; +import Categories from '~/components/containerCards/containerCardsCategory'; import PaymentMethodsList from '~/components/paymentMethod/paymentMethodsList'; import ReviewsContainer from '~/components/containerCards/containerCardsReviews'; import reviews from '~/mockData/mockReviwes'; import Banner from '~/components/Banner'; import BrandCarrousel from '~/components/carousels/brandCarrousel'; -import Form from '~/components/form/Form'; export default function Home() { createIconsTypes(); return ( }> - {/* */} + - diff --git a/src/components/cards/categoryCard.tsx b/src/components/cards/categoryCard.tsx index efb52a3..7d0fcb4 100644 --- a/src/components/cards/categoryCard.tsx +++ b/src/components/cards/categoryCard.tsx @@ -1,29 +1,22 @@ -import React, { FC } from "react"; -import Image from "next/image"; +import Image from 'next/image'; +import { CategoryProps } from '~/types/products'; -interface CardPropsCategory { - name: string; - imageSrc: string; -} - -const CardCategory: FC = ({ name, imageSrc }) => { +const CardCategory: React.FC = ({ name, image }) => { return (
Imagen de Categoria
-
-

- {name} -

-
+
+

{name}

+
); }; -export default CardCategory; \ No newline at end of file +export default CardCategory;