Skip to content

Commit

Permalink
fix : hero error
Browse files Browse the repository at this point in the history
  • Loading branch information
Puskar-Roy committed Jul 17, 2024
1 parent c37d68d commit c554af3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/src/components/ui/3d-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ export const CardContainer = ({
containerRef.current.style.transform = `rotateY(${x}deg) rotateX(${y}deg)`;
};

const handleMouseEnter = (e: React.MouseEvent<HTMLDivElement>) => {
const handleMouseEnter = () => {
setIsMouseEntered(true);
if (!containerRef.current) return;
};

const handleMouseLeave = (e: React.MouseEvent<HTMLDivElement>) => {
const handleMouseLeave = () => {
if (!containerRef.current) return;
setIsMouseEntered(false);
containerRef.current.style.transform = `rotateY(0deg) rotateX(0deg)`;
Expand Down

0 comments on commit c554af3

Please sign in to comment.