-
Notifications
You must be signed in to change notification settings - Fork 12
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
Search bar fix #9
Comments
@akshat-bhansali |
@0PrashantYadav0 |
@akshat-bhansali i will take input in search bar and match the input from user list present in navbar using startsWith() function |
It is not to be checked with just the starting…The text can be any part of it.Basically it is REGEX |
Ohk then i will use includes() function to search for pattern and sort the array so that i will give the closest result |
@0PrashantYadav0 I have assigned you the issue.All the best! |
The navbar has a search bar present in it.
You have to make a list of users(first 5) appear according to the search.
Example :- If I type "AK" then the list should Akshit-Nandan and Akshat-Bhansali in it.
List format is icon on left and name following it.
On clicking on any user, it should be directed to their profile(Example - /profile/Akshit-Nandan ....check the route in the hackathon participant section for reference)
The list of all users is present in the "listUser" useState variable in the navbar file
The text was updated successfully, but these errors were encountered: