Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
sau-mili authored May 25, 2024
1 parent 3a53cc2 commit 28853d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const Dashboard = () => {
const handleTouchEnd = () => {
setActiveIndex(null);
};

//navbar scroll effects
const [fix, setFix]= useState(false)

function setFixed(){
Expand All @@ -82,8 +82,8 @@ window.addEventListener("scroll", setFixed)
return (
<>
<main>
<ScrollToTop color='white' style={{ backgroundColor: "#5CB6F9" }} />
<nav className={fix? 'navbar fixed' : 'navbar'}>
<ScrollToTop color='white' style={{ backgroundColor: "#5CB6F9" }} />
<nav className={fix? 'navbar fixed' : 'navbar'}>
<div className="logo">
<img src={Logo} alt="Logo" />
</div>
Expand Down

0 comments on commit 28853d5

Please sign in to comment.