Skip to content

Commit

Permalink
Refactor Home component to include listing details in SafeListing int…
Browse files Browse the repository at this point in the history
…erface
  • Loading branch information
GithmiHashara committed Sep 22, 2024
1 parent 91894fa commit e46e26f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import getCurrentUser from './actions/getCurrentUser';
// types.ts

export interface SafeListing {
listing:any,
id: string;
title: string;
description: string;
Expand All @@ -32,7 +33,7 @@ const Home = async ({ searchParams }: HomeProps) => {
return (
<Container>
<div className="pt-24 grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 gap-8">
{listings.map((listing: Listing) => (
{listings.map((listing) => (
<ListingCard
key={listing.id}
data={listing}
Expand Down

0 comments on commit e46e26f

Please sign in to comment.