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

Export usePopoverShouldClose from entry point #1630

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Export usePopoverShouldClose from entry point #1630

merged 1 commit into from
Jul 23, 2024

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Jul 23, 2024

After pointing out in #1629 (review) the fact that I forgot to expose usePopoverShouldClose from the library's entry point, I ended up forgetting to update that PR before merging it.

This PR adds what was missing there.

@@ -20,7 +20,7 @@ export type UsePopoverShouldCloseOptions = {
* @param handleClose - Callback invoked to close the popover
* @param options
*/
export default function usePopoverShouldClose(
export function usePopoverShouldClose(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switched to a non-default export for consistency with other hooks.

Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.90%. Comparing base (6eb4d9b) to head (a7e9450).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1630   +/-   ##
=======================================
  Coverage   99.90%   99.90%           
=======================================
  Files          62       62           
  Lines        1071     1071           
  Branches      409      409           
=======================================
  Hits         1070     1070           
  Misses          1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@acelaya acelaya merged commit 487c251 into main Jul 23, 2024
3 of 4 checks passed
@acelaya acelaya deleted the export-hook branch July 23, 2024 06:47
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.

2 participants