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 && }
);
diff --git a/client/src/components/About/About.jsx b/client/src/components/About/About.jsx
index afacae5..b1fdfef 100644
--- a/client/src/components/About/About.jsx
+++ b/client/src/components/About/About.jsx
@@ -12,7 +12,6 @@ const About = () => {
-
);
};
diff --git a/client/src/pages/Companies.jsx b/client/src/pages/Companies.jsx
index 45dc82f..fcac670 100644
--- a/client/src/pages/Companies.jsx
+++ b/client/src/pages/Companies.jsx
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
import { CompanyCard, CustomButton, Header, ListBox } from "../components";
import { companies } from "../utils/data";
-import { BiArrowToTop } from "react-icons/bi";
const Companies = () => {
const [page, setPage] = useState(1);
@@ -84,8 +83,6 @@ const Companies = () => {
)}
- {/* Top Scroll Btn */}
- { window.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }} />
);
};
diff --git a/client/src/pages/FindJobs.jsx b/client/src/pages/FindJobs.jsx
index cf1d4d0..0f1b2b6 100644
--- a/client/src/pages/FindJobs.jsx
+++ b/client/src/pages/FindJobs.jsx
@@ -1,6 +1,6 @@
import { useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
-import { BiArrowToTop, BiBriefcaseAlt2 } from "react-icons/bi";
+import { BiBriefcaseAlt2 } from "react-icons/bi";
import { BsStars } from "react-icons/bs";
import { MdOutlineKeyboardArrowDown } from "react-icons/md";
@@ -151,8 +151,6 @@ const FindJobs = () => {
)}
- {/* Top Scroll Btn */}
- { window.scrollTo({ top: 0, left: 0, behavior: "smooth" }); }} />
);
};