From e46e26ffb3fe75b611a2383d60517d7a9c7ace6b Mon Sep 17 00:00:00 2001 From: Githmi Hashara Date: Sun, 22 Sep 2024 19:26:06 +0530 Subject: [PATCH] Refactor Home component to include listing details in SafeListing interface --- app/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index 90532f7..3f44d0b 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -8,6 +8,7 @@ import getCurrentUser from './actions/getCurrentUser'; // types.ts export interface SafeListing { + listing:any, id: string; title: string; description: string; @@ -32,7 +33,7 @@ const Home = async ({ searchParams }: HomeProps) => { return (
- {listings.map((listing: Listing) => ( + {listings.map((listing) => (