feat: complete tankoepdia page

This commit is contained in:
TrèsAbhi committed 2024-09-22 22:04:03 -05:00
1 parent 2b5ffb2b84
commit a54ba78dbf
39 files changed
+790 -161

No files matched your search

@@ -1,4 +1,4 @@
import { type RefObject, useLayoutEffect, useRef } from 'react';
import { type RefObject, useEffect, useRef } from 'react';
interface UseIntersectionOptions extends IntersectionObserverInit {
disabled: boolean;
@@ -11,7 +11,7 @@ export function useIntersection(
) {
const observer = useRef<IntersectionObserver>();
useLayoutEffect(() => {
useEffect(() => {
if (options?.disabled || !ref.current) return;
const rect = ref.current.getBoundingClientRect();