Fix TypeScript type for animation ref
Some checks failed
Build and Deploy to Production / build-and-deploy (push) Has been cancelled
Some checks failed
Build and Deploy to Production / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -14,7 +14,7 @@ export function ConstellationWidget() {
|
|||||||
const [mousePos, setMousePos] = useState({ x: 0, y: 0 });
|
const [mousePos, setMousePos] = useState({ x: 0, y: 0 });
|
||||||
const [isHovering, setIsHovering] = useState(false);
|
const [isHovering, setIsHovering] = useState(false);
|
||||||
const particlesRef = useRef<Particle[]>([]);
|
const particlesRef = useRef<Particle[]>([]);
|
||||||
const animationRef = useRef<number>();
|
const animationRef = useRef<number | undefined>(undefined);
|
||||||
|
|
||||||
const colors = [
|
const colors = [
|
||||||
'#60A5FA', // blue-400
|
'#60A5FA', // blue-400
|
||||||
|
|||||||
Reference in New Issue
Block a user