Skip to content

Commit 921cf54

Browse files
committedJan 5, 2025
update framer motion to motion/react
1 parent de5ff97 commit 921cf54

File tree

5 files changed

+74
-22
lines changed

5 files changed

+74
-22
lines changed
 

‎app/play/bouncy-tooltip/client.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
"use client";
22

3-
import { Portal } from "ariakit";
43
import React, { useContext, useEffect, useState } from "react";
54
import { useStore } from "zustand";
65
import { createStore, StoreApi } from "zustand/vanilla"
7-
import { AnimatePresence, motion } from "framer-motion"
8-
import { Tooltip, TooltipAnchor, TooltipProvider, useTooltipContext } from "@ariakit/react"
6+
import { AnimatePresence, motion } from "motion/react"
7+
import { Tooltip, TooltipAnchor, TooltipProvider, useTooltipContext, Portal } from "@ariakit/react"
98

109
type CursorPositionStore = {
1110
pos: {x: number, y: number}

‎app/play/synced-positions/client.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import React, { useCallback, useContext, useEffect, useState } from "react";
44
import { useStore } from "zustand";
55
import { createStore, StoreApi } from "zustand/vanilla"
6-
import { motion } from "framer-motion"
6+
import { motion } from "motion/react"
77

88
type CursorPositionStore = {
99
pos: {x: number, y: number}

‎components/ui/LightboxImage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Button } from "@/components/ui/Button";
44
import { Dialog, DialogClose, DialogContent, DialogTrigger } from "@/components/ui/Dialog";
55
import { cn } from "@/lib/styling";
66
import { Cross2Icon, EnterFullScreenIcon } from "@radix-ui/react-icons";
7-
import { motion } from "framer-motion";
7+
import { motion } from "motion/react";
88
import Image, { ImageProps } from "next/image";
99
import { ComponentProps, useState } from "react";
1010

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"framer-motion": "12.0.0-alpha.1",
3131
"geist": "^1.3.0",
3232
"match-sorter": "^8.0.0",
33+
"motion": "^11.15.0",
3334
"nanoid": "^5.0.7",
3435
"next": "15.1.2",
3536
"react": "19.0.0",

‎pnpm-lock.yaml

+69-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.