mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
replace react-intersection-observer package with mantine hooks
This commit is contained in:
parent
5892088b03
commit
29991ea95d
4 changed files with 6 additions and 19 deletions
3
src/shared/hooks/use-in-viewport.ts
Normal file
3
src/shared/hooks/use-in-viewport.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { useInViewport as useMantineInViewport } from '@mantine/hooks';
|
||||
|
||||
export const useInViewport = useMantineInViewport;
|
||||
3
src/shared/hooks/use-intersection.ts
Normal file
3
src/shared/hooks/use-intersection.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { useIntersection as useMantineIntersection } from '@mantine/hooks';
|
||||
|
||||
export const useIntersection = useMantineIntersection;
|
||||
Loading…
Add table
Add a link
Reference in a new issue