Refactor: removed default exports.

This commit is contained in:
Mike Cao committed 2025-02-13 22:53:25 -08:00
1 parent cd944e14ce
commit f83a12d6cd
343 files changed
+555 -1046

No files matched your search

+1 -2
View File
@@ -6,6 +6,7 @@ export function useSticky({ enabled = true, threshold = 1 }) {
useEffect(() => {
let observer: IntersectionObserver | undefined;
// eslint-disable-next-line no-undef
const handler: IntersectionObserverCallback = ([entry]) =>
setIsSticky(entry.intersectionRatio < threshold);
@@ -22,5 +23,3 @@ export function useSticky({ enabled = true, threshold = 1 }) {
return { ref, isSticky };
}
export default useSticky;