diff --git a/client/src/App.jsx b/client/src/App.jsx index 9806b72..97c55b4 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -21,6 +21,7 @@ import About from "./components/About/About"; import { useEffect, useState } from "react"; import Loader from "./components/Loader"; +import { BiArrowToTop } from "react-icons/bi"; function Layout() { const { user } = useSelector((state) => state.user); @@ -74,7 +75,7 @@ function App() { } @@ -91,6 +92,7 @@ function App() { element={} /> + {window.scrollTo({ top: 0, left: 0, behavior: "smooth"});}}/> {user &&