Skip to content

Commit

Permalink
update configure
Browse files Browse the repository at this point in the history
  • Loading branch information
ocitocit committed Oct 16, 2023
1 parent 984d7f9 commit 749cbf7
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import Container from '@/components/Container';
import EmptyState from '@/components/EmptyState';
import getListings from '@/actions/getListings';
import getListings, { IListingParams } from '@/actions/getListings';
import ListingCard from '@/components/listings/ListingCard';
import getCurrentUser from '@/actions/getCurrentUser';

export default async function Home() {
const listings = await getListings();
interface HomeProps{
searchParams:IListingParams
}

const Home = async ({searchParams}:HomeProps) => {
const listings = await getListings(searchParams);
const currentUser = await getCurrentUser();

if (listings.length === 0) {
Expand Down Expand Up @@ -39,3 +43,4 @@ export default async function Home() {
</Container>
);
}
export default Home

0 comments on commit 749cbf7

Please sign in to comment.