From d4d2ac1a513a16d7230a00167defedc40ab5783b Mon Sep 17 00:00:00 2001 From: Krishna Ayyalasomayajula Date: Mon, 1 Jun 2026 20:47:57 -0500 Subject: [PATCH] fix: use m.button instead of motion.button in ScrollToTop --- components/ui/ScrollToTop.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/ui/ScrollToTop.tsx b/components/ui/ScrollToTop.tsx index a4016b2..b550942 100644 --- a/components/ui/ScrollToTop.tsx +++ b/components/ui/ScrollToTop.tsx @@ -1,7 +1,7 @@ "use client"; import { useEffect, useState } from "react"; -import { motion } from "motion/react"; +import { m } from "motion/react"; export function ScrollToTop() { const [visible, setVisible] = useState(false); @@ -14,7 +14,7 @@ export function ScrollToTop() { }, []); return ( - window.scrollTo({ top: 0, behavior: "smooth" })} whileHover={{ scale: 1.1 }} @@ -23,6 +23,6 @@ export function ScrollToTop() { aria-label="Scroll to top" > - + ); }