From c826ad66df066b90b09009f2f4b83b56d018436e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 15 Nov 2023 16:37:16 +0100 Subject: refactor(hooks): rewrite useScrollPosition hook * return the scroll position (both X and Y) * no longer accepts arguments * add tests --- src/utils/hooks/use-scroll-position/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/utils/hooks/use-scroll-position/index.ts (limited to 'src/utils/hooks/use-scroll-position/index.ts') diff --git a/src/utils/hooks/use-scroll-position/index.ts b/src/utils/hooks/use-scroll-position/index.ts new file mode 100644 index 0000000..8c11c1e --- /dev/null +++ b/src/utils/hooks/use-scroll-position/index.ts @@ -0,0 +1 @@ +export * from './use-scroll-position'; -- cgit v1.2.3