diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..b58b603 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ 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 &&