Skip to content

Commit

Permalink
Merge pull request #420 from JiyaGupta-cs/master
Browse files Browse the repository at this point in the history
feat: Added ScrollToTop
  • Loading branch information
thestarsahil authored Jan 31, 2024
2 parents 564e5f6 + fdda853 commit ab07154
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react-icons": "^4.12.0",
"react-loader-spinner": "^6.1.6",
"react-router-dom": "^6.21.1",
"react-scroll-to-top": "^3.0.0",
"react-spinners": "^0.13.8",
"typewriter-effect": "^2.21.0",
"uid": "^2.0.2"
Expand Down
2 changes: 2 additions & 0 deletions src/components/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { auth } from "../../firebase/auth";
import { useNavigate } from "react-router-dom";
import Footer from "../Footer/Footer";
import collegesData from './colleges.json';
import ScrollToTop from "react-scroll-to-top";

const Dashboard = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -41,6 +42,7 @@ const Dashboard = () => {

<>
<main>
<ScrollToTop color='white' style={{backgroundColor:"#5CB6F9"}}/>
<nav className="navbar">
<div className="logo">
<img src={Logo} alt="Logo" />
Expand Down

0 comments on commit ab07154

Please sign in to comment.