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

823 direct paging users #1215

Merged
merged 18 commits into from
Feb 10, 2023
Merged

823 direct paging users #1215

merged 18 commits into from
Feb 10, 2023

Conversation

Ukochka
Copy link
Contributor

@Ukochka Ukochka commented Jan 25, 2023

What this PR does

Which issue(s) this PR fixes

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated

@maskin25 maskin25 marked this pull request as ready for review February 7, 2023 14:24
@maskin25 maskin25 requested a review from a team February 7, 2023 14:24
export function useOnClickOutside(ref, handler) {
useEffect(() => {
const listener = (event) => {
if (!ref.current || ref.current.contains(event.target)) {
Copy link
Member

Choose a reason for hiding this comment

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

if(ref.current?.contains(event.target)) {}

shorthand 🚀

Copy link
Contributor

Choose a reason for hiding this comment

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

your expression doesn't do the same

Copy link
Member

Choose a reason for hiding this comment

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

Ohh, my bad. I read it as && instead...

Copy link
Member

@teodosii teodosii left a comment

Choose a reason for hiding this comment

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

Approved, but left a few questions and minor things. Also it would be nice if we could add a few tests for this new feature

@maskin25 maskin25 added the pr:no public docs Added to a PR that does not require public documentation updates label Feb 10, 2023
@maskin25 maskin25 merged commit 4ee2f09 into dev Feb 10, 2023
@maskin25 maskin25 deleted the 823-direct-paging-users branch February 10, 2023 11:10
brojd pushed a commit that referenced this pull request Sep 18, 2024
# What this PR does

Adds direct user paging

## Which issue(s) this PR fixes

#823

## Checklist

- [ ] Tests updated
- [ ] Documentation added (documentation will be added later)
- [x] `CHANGELOG.md` updated

---------

Co-authored-by: Maxim <maxim.mordasov@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants