-
Notifications
You must be signed in to change notification settings - Fork 0
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
Filters #3
base: main
Are you sure you want to change the base?
Conversation
671106b
to
4cd98ac
Compare
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.
A couple of questions before reviewing the code:
- I see you have skipped the step of implementing the API call, is there a specific reason why?
- I also see you're not using
formo
as suggested for form management. I recommend having a look at using it, since it's our default stack choice.
Answ:
|
eb304b1
to
25b64b4
Compare
Another day another api call |
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.
There are a few areas for improvement, see the specific comments for details.
A general feedback: here you have implemented both the filters and the detail page, where normally each one should be their own PR. You should try to have your PRs have as small a scope as possible, so that their purpose is more easily identifiable and the code is quicker to review and fix, if needed.
I think I've managed all your observations :) I agree, I should have splitted this into more PRs for readability and speed on both of our sides. I'll learn from this, thanks! |
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.
Looking good! 👍🏻
src/api.tsx
Outdated
const radiusParamsString: string = | ||
radius == 0 ? "900" : radius.toString() + "000"; | ||
const uri = `/api/search?sort_by=best_match&location=${location}&radius=${radiusParamsString}&${priceParamsString}`; | ||
console.log(uri); |
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.
Leftover?
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.
yep
No description provided.