mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Use named export for useIntersectionObserver
Signed-off-by: alexfront <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
511fc09419
commit
e82f83fa5a
4 files changed
+4
-5
No files matched your search
@@ -10,3 +10,4 @@ export * from "./useInterval";
|
||||
export * from "./useMutationObserver";
|
||||
export * from "./useResizeObserver";
|
||||
export * from "./use-toggle";
|
||||
export * from "./useIntersectionObserver";
|
||||
@@ -37,7 +37,7 @@ interface IntersectionObserverOptions {
|
||||
rootMargin?: string;
|
||||
}
|
||||
|
||||
function useIntersectionObserver(
|
||||
export function useIntersectionObserver(
|
||||
element: Element | null,
|
||||
{
|
||||
threshold = 0,
|
||||
@@ -64,5 +64,3 @@ function useIntersectionObserver(
|
||||
|
||||
return entry;
|
||||
}
|
||||
|
||||
export default useIntersectionObserver;
|
||||
Reference in new issue
Block a user