11import React , { useState , useRef , useEffect } from "react" ;
22import { Link } from "react-router-dom" ;
33import { FileText , Menu , X , LogOut , Crown , Copy , Check , Star , ChevronDown } from "lucide-react" ;
4- import { AnimatePresence } from "framer-motion" ;
4+ import { AnimatePresence , motion as Motion } from "framer-motion" ;
55import { useAccount , useDisconnect } from "wagmi" ;
66import { ConnectButton } from "@rainbow-me/rainbowkit" ;
77import { useSubscription } from "../../hooks/useSubscription" ;
@@ -51,7 +51,7 @@ function WalletMenu({ address, isPremium }) {
5151
5252 < AnimatePresence >
5353 { open && (
54- < motion . div
54+ < Motion . div
5555 initial = { { opacity : 0 , y : 6 , scale : 0.97 } }
5656 animate = { { opacity : 1 , y : 0 , scale : 1 } }
5757 exit = { { opacity : 0 , y : 6 , scale : 0.97 } }
@@ -97,7 +97,7 @@ function WalletMenu({ address, isPremium }) {
9797 < LogOut className = "w-4 h-4" />
9898 Disconnect wallet
9999 </ button >
100- </ motion . div >
100+ </ Motion . div >
101101 ) }
102102 </ AnimatePresence >
103103 </ div >
@@ -130,7 +130,7 @@ function EditDropdown() {
130130
131131 < AnimatePresence >
132132 { isOpen && (
133- < motion . div
133+ < Motion . div
134134 initial = { { opacity : 0 , y : - 10 , scale : 0.95 } }
135135 animate = { { opacity : 1 , y : 0 , scale : 1 } }
136136 exit = { { opacity : 0 , y : - 10 , scale : 0.95 } }
@@ -148,7 +148,7 @@ function EditDropdown() {
148148 </ Link >
149149 ) ) }
150150 </ div >
151- </ motion . div >
151+ </ Motion . div >
152152 ) }
153153 </ AnimatePresence >
154154 </ div >
@@ -179,7 +179,7 @@ function ConvertDropdown() {
179179
180180 < AnimatePresence >
181181 { isOpen && (
182- < motion . div
182+ < Motion . div
183183 initial = { { opacity : 0 , y : - 10 , scale : 0.95 } }
184184 animate = { { opacity : 1 , y : 0 , scale : 1 } }
185185 exit = { { opacity : 0 , y : - 10 , scale : 0.95 } }
@@ -197,7 +197,7 @@ function ConvertDropdown() {
197197 </ Link >
198198 ) ) }
199199 </ div >
200- </ motion . div >
200+ </ Motion . div >
201201 ) }
202202 </ AnimatePresence >
203203 </ div >
@@ -228,7 +228,7 @@ function OptimizeDropdown() {
228228
229229 < AnimatePresence >
230230 { isOpen && (
231- < motion . div
231+ < Motion . div
232232 initial = { { opacity : 0 , y : - 10 , scale : 0.95 } }
233233 animate = { { opacity : 1 , y : 0 , scale : 1 } }
234234 exit = { { opacity : 0 , y : - 10 , scale : 0.95 } }
@@ -246,7 +246,7 @@ function OptimizeDropdown() {
246246 </ Link >
247247 ) ) }
248248 </ div >
249- </ motion . div >
249+ </ Motion . div >
250250 ) }
251251 </ AnimatePresence >
252252 </ div >
@@ -276,7 +276,7 @@ function SecurityDropdown() {
276276
277277 < AnimatePresence >
278278 { isOpen && (
279- < motion . div
279+ < Motion . div
280280 initial = { { opacity : 0 , y : - 10 , scale : 0.95 } }
281281 animate = { { opacity : 1 , y : 0 , scale : 1 } }
282282 exit = { { opacity : 0 , y : - 10 , scale : 0.95 } }
@@ -294,7 +294,7 @@ function SecurityDropdown() {
294294 </ Link >
295295 ) ) }
296296 </ div >
297- </ motion . div >
297+ </ Motion . div >
298298 ) }
299299 </ AnimatePresence >
300300 </ div >
@@ -377,7 +377,7 @@ export function Navbar() {
377377
378378 < AnimatePresence >
379379 { isOpen && (
380- < motion . div
380+ < Motion . div
381381 initial = { { opacity : 0 , height : 0 } }
382382 animate = { { opacity : 1 , height : "auto" } }
383383 exit = { { opacity : 0 , height : 0 } }
@@ -419,7 +419,7 @@ export function Navbar() {
419419 ) }
420420 </ div >
421421 </ div >
422- </ motion . div >
422+ </ Motion . div >
423423 ) }
424424 </ AnimatePresence >
425425 </ nav >
0 commit comments