Skip to content
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

Implement Search #17

Merged
merged 8 commits into from Jun 21, 2021
Merged

Conversation

SundeepChand
Copy link
Member

@SundeepChand SundeepChand commented Jun 7, 2021

Fixes #13

Basic implementation of the search functionality.

search2.mp4

For this to work we need to enable the find permission in Public > Users Permissions > User
Capture

@SundeepChand SundeepChand marked this pull request as ready for review June 9, 2021 13:13
@SundeepChand SundeepChand changed the title Feat/search Implement Search Jun 9, 2021
@dvijaywargiya
Copy link
Contributor

LGTM

@sharmaaditya570191 can you check the functionality once?

@kaybhutani
Copy link
Member

everything else looks good

},
{ cancelToken: cancelToken.current.token }
)
setUsersToSuggest(response.data.data.users)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null checks

} else {
setUsersToSuggest([])
}
}, [userTerm, setUsersSuggestionOpen])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need this? these are props and components will re-render anyway on props change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think yes, because of setUsersToSuggest(response.data.data.users) if we remove the dependencies then, it will be rendered again & again.

@kaybhutani kaybhutani merged commit bfd19b8 into EOS-uiux-Solutions:main Jun 21, 2021
@SundeepChand SundeepChand deleted the feat/search branch June 21, 2021 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search stories via home page
3 participants