Skip to content

Commit

Permalink
fix: use new motion.create
Browse files Browse the repository at this point in the history
  • Loading branch information
hzhu committed Oct 6, 2024
1 parent f30ce0d commit 29ec3c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ const SHEET_MARGINS = {
xs: 540,
} as const;

const MotionModal = motion(
const MotionModal = motion.create(
Modal as ForwardRefExoticComponent<RefAttributes<HTMLDivElement>>
);

const MotionModalOverlay = motion(
const MotionModalOverlay = motion.create(
ModalOverlay as ForwardRefExoticComponent<
ModalOverlayProps & RefAttributes<HTMLDivElement>
>
Expand Down

0 comments on commit 29ec3c5

Please sign in to comment.