Open sweep-ai[bot] opened 10 months ago
app/components/card.tsx
✓
Sandbox logs for https://github.com/danwill89/gen-ai/commit/028c21cd8c723c60d3657a26f416c2c78dd5beba
trunk fmt app/components/card.tsx || exit 0
1/2 ✓✔ Formatted app/components/card.tsx Re-checking autofixed files... Checked 1 file ✔ No issues Run trunk upgrade to upgrade 2 linters
trunk check --fix --print-failures app/components/card.tsx
2/2 ✓Checked 1 file ✔ No issues
Sweep: add 5 tests to test the getNameLength function in card.tsx
Done.
Sweep: add testing-library/react to package.json
Done.
PR Feedback (click)
Description
This PR adds a new function to the
card.tsx
file that calculates the length of the name and displays it under the age with a small heading saying 'Name Length'.Summary of Changes
React
library at the top of thecard.tsx
file.getNameLength
inside theCard
component that takes thename
prop as an argument and returns its length.Card
component to display the name length using thegetNameLength
function.Please review and merge these changes.
Fixes #19.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: