Open sweep-ai[bot] opened 8 months ago
app/api.ts
✓
Check app/api.ts with contents:
Ran GitHub Actions for fd3a893513df0c2da755d92333c5d3a18af5f508:
• Vercel Preview Comments: ✓
app/page.tsx
✓
Check app/page.tsx with contents:
Ran GitHub Actions for 20eec31b8bb8de22d33a763721d921edf7de6301:
• Vercel Preview Comments: ✓
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
nextjs-boilerplate | ❌ Failed (Inspect) | Dec 21, 2023 7:58am |
PR Feedback (click)
Description
This pull request includes changes to the
app/api.ts
andapp/page.tsx
files. It adds a new functionfetchProfiles
to theapi.ts
file that fetches data from thehttps://onlysearch.co/api/search
endpoint. The fetched data is then used in thepage.tsx
file to display a grid of profile cards. TheuseEffect
hook is used to fetch the profiles data and update the state variablesprofiles
anderror
. If an error occurs during the fetch, the error message is displayed. The profile cards are styled using Tailwind CSS classes.Summary
fetchProfiles
function toapi.ts
filepage.tsx
file to fetch profiles data and display profile cardsprofiles
anderror
to manage fetched data and error messagesFixes #1.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: