Skip to content

Commit

Permalink
Merge pull request #35 from Bug-Bust3rs/dev
Browse files Browse the repository at this point in the history
fix : hero error
  • Loading branch information
Puskar-Roy authored Jul 17, 2024
2 parents df2e608 + c554af3 commit 9d0ef9a
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 9d0ef9a

Please sign in to comment.