Open vneogi199 opened 8 months ago
We have the same issue on Add Ratings
page. I think we should hide the search box here as there is nothing to search on this page.
Thank you for raising the bug.
I have assigned it to you
I have disabled the search on the add ratings page.
But on the rankings page, my approach of searching users by passing setKeyword
to SideNav
won't work as Rankings page is a server component. Only solution I could find is to set the search keyword in the search params and extract it from there. Based on this I can filter the users. Is that a good solution?
Perhaps on the add ratings page, we could have a Global repo search, such that once a searched repo is selected, the URL can be auto-populated.
Has this bug been raised before?
Where did you find this bug?
production
Description
On the user ratings page, the search does not work. In the browser console you can see an error:
Uncaught TypeError: t is not a function
Steps to Reproduce
Uncaught TypeError: t is not a function
Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
In like we do in
app/rankings/page.js
, we aren't passing setKeyword callback toapp/page.js
. Need to pass this callback and filter theUsers
component with keyword by searching on name of the users