-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create GET API to fetch trips for the user #54 #83
Conversation
✅ Deploy Preview for friendly-crumble-3832b4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
wonderlust/src/app/dashboard/page.js
Outdated
) : ( | ||
<div className="grid gap-6 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"> | ||
{trips.map((trip, index) => ( | ||
<div |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can break down the dashboard page and create a new TripCard component here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure i will create a separate PR for it
053a0ed
to
ba993ab
Compare
Changes made:
Updated the dashboard to display trips created by user .
Handled the case where no trips are found for a user.