aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-on-click-outside/index.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-01 16:10:31 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commit1e4b48aa075e6131a7244cd4726ddb5ba75fcecf (patch)
treeba0377440419f6690f079c1fc9de5915db805a38 /src/utils/hooks/use-on-click-outside/index.ts
parent2844a2bd71dcf1eb17a53992c10129b7496332e0 (diff)
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
Diffstat (limited to 'src/utils/hooks/use-on-click-outside/index.ts')
-rw-r--r--src/utils/hooks/use-on-click-outside/index.ts1
1 files changed, 1 insertions, 0 deletions
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';