From 36684964f45d1a1f4bbfb2893b198a37c526b860 Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Sat, 30 Dec 2023 17:21:29 -0800 Subject: [PATCH] fix: updated the page app --- app/page.tsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 448ff1b..448720a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -2,8 +2,12 @@ import Image from "next/image"; import SearchBar from "@/components/SearchBar"; import HeroCarousel from "@/components/HeroCarousel"; +import { getAllProducts } from "@/lib/actions"; +import ProductCard from "@/components/ProductCard"; + +const Home = async () => { + const allProducts = await getAllProducts(); -const Home = () => { return ( <>
@@ -36,7 +40,11 @@ const Home = () => {

Trending

-
{/* Products */}
+
+ {allProducts?.map((product) => ( + + ))} +
);