Skip to content

Commit

Permalink
Refactor Home component to remove commented out code and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
GithmiHashara committed Sep 22, 2024
1 parent e46e26f commit c7d2457
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@

// import { TbCoinRupee } from 'react-icons/tb';
// import Container from './components/Container';
// import EmptyState from './components/EmptyState';
// import getListings, { IListingsParams } from './actions/getListings';
// import ListingCard from './components/listings/ListingCard';
// import getCurrentUser from './actions/getCurrentUser';

// interface HomeProps {
// searchParams: IListingsParams
// }


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


// if(listings.length === 0) {
// return (
// <EmptyState showReset={true} />
// )
// }



// 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) => (
// <ListingCard
// key={listing.id}
// data={listing}
// currentUser={currentUser}
// />
// ))}
// </div>
// </Container>

// )
// }

// export default Home;



import { TbCoinRupee } from 'react-icons/tb';
import Container from './components/Container';
import EmptyState from './components/EmptyState';
Expand Down

0 comments on commit c7d2457

Please sign in to comment.