From eb1992f5eeba93a97c7e5fa175a76cde9e21e9c9 Mon Sep 17 00:00:00 2001 From: ukorvl Date: Sat, 21 Oct 2023 16:02:10 +0400 Subject: [PATCH] fix tests #12 --- lib/useOnScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/useOnScreen.tsx b/lib/useOnScreen.tsx index 3e62df4..4666a12 100644 --- a/lib/useOnScreen.tsx +++ b/lib/useOnScreen.tsx @@ -3,7 +3,7 @@ import { RefObject, useEffect, useState } from "react"; /** * UseOnScreen hook settings. */ -export type UseOnScreenParameters = { +export type UseOnScreenParameters = { /** * Target React element ref. */ @@ -46,7 +46,7 @@ export type UseOnScreenParameters = { * @param {UseOnScreenParameters} useOnScreenParameters - Parameters. * @returns . */ -export const useOnScreen = ({ +export const useOnScreen = ({ ref, threshold = 0, once = false,