Bob AI: fix build errors (attempt 1)
This commit is contained in:
@@ -22,7 +22,7 @@ interface FeaturesRevealCardsProps {
|
||||
}
|
||||
|
||||
const ParallaxFeatureCard = ({ item, index }: { item: FeatureItem; index: number }) => {
|
||||
const cardRef = useRef<HTMLDivElement>(null);
|
||||
const cardRef = useRef<HTMLElement>(null);
|
||||
const transform = useParallax(cardRef, { maxRotate: 5 });
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useState, useEffect, RefObject } from "react";
|
||||
import { useState, useEffect, type RefObject } from "react";
|
||||
|
||||
export const useParallax = (ref: RefObject<HTMLElement>, options?: { maxRotate?: number }) => {
|
||||
const [transform, setTransform] = useState("rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)");
|
||||
|
||||
Reference in New Issue
Block a user