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 const useParallax = (ref: RefObject<HTMLElement>, options?: { maxRotate?: number }) => {
|
||||
export const useParallax = <T extends HTMLElement>(ref: RefObject<T>, options?: { maxRotate?: number }) => {
|
||||
const [transform, setTransform] = useState("rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)");
|
||||
const maxRotate = options?.maxRotate || 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user