Bob AI: fix build errors (attempt 1)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect, RefObject } from 'react';
|
||||
import { useState, useEffect, type RefObject } from 'react';
|
||||
|
||||
export default function useOnScreen(ref: RefObject<HTMLElement>, rootMargin = '0px') {
|
||||
export default function useOnScreen<T extends HTMLElement>(ref: RefObject<T>, rootMargin = '0px') {
|
||||
const [isIntersecting, setIntersecting] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user