fix animated card which was broken because of m instead of motion
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import type { VariantProps } from "class-variance-authority";
|
||||
import { cva } from "class-variance-authority";
|
||||
import { type HTMLMotionProps, m } from "motion/react";
|
||||
import { type HTMLMotionProps, motion } from "motion/react";
|
||||
import { forwardRef, type HTMLAttributes, type ReactNode } from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { CardDepthProvider, useCardDepth } from "./card-context";
|
||||
@@ -62,7 +62,7 @@ const Card = forwardRef<HTMLDivElement, CommonCardProps>(
|
||||
|
||||
Card.displayName = "Card";
|
||||
|
||||
const MCard = m.create(Card);
|
||||
const MCard = motion.create(Card);
|
||||
|
||||
export const AnimatedCard: React.FC<
|
||||
CommonCardProps & HTMLMotionProps<"div">
|
||||
|
||||
Reference in New Issue
Block a user