From 1e4b48aa075e6131a7244cd4726ddb5ba75fcecf Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 1 Nov 2023 16:10:31 +0100 Subject: refactor(hooks): rewrite useOnClickOutside hook * remove `useCapture` parameter (it does not make sense to use bubbling here) * return a MutableRefObject instead of a RefObject to be able to test the hook --- src/utils/hooks/use-on-click-outside/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/utils/hooks/use-on-click-outside/index.ts (limited to 'src/utils/hooks/use-on-click-outside/index.ts') diff --git a/src/utils/hooks/use-on-click-outside/index.ts b/src/utils/hooks/use-on-click-outside/index.ts new file mode 100644 index 0000000..b9fff06 --- /dev/null +++ b/src/utils/hooks/use-on-click-outside/index.ts @@ -0,0 +1 @@ +export * from './use-on-click-outside'; -- cgit v1.2.3