Skip to content

Commit

Permalink
Merge branch 'master' into fixuserdata
Browse files Browse the repository at this point in the history
  • Loading branch information
narayan954 authored Dec 10, 2023
2 parents 8127517 + bc4ce58 commit 5abec70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/reusableComponents/Darkmode/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
cursor: pointer;
}

@media (min-width: 840px){
@media (min-width: 840px) {
.toggle-container {
position: absolute;
top: 0px;
}
}
}
4 changes: 3 additions & 1 deletion src/reusableComponents/Darkmode/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ const Darkmode = () => {
};

return (
<div className={`${location.href.includes('login') ? "toggle-container" : ""}`}>
<div
className={`${location.href.includes("login") ? "toggle-container" : ""}`}
>
<button onClick={darkModeToggle} className="theme-toggle-btn">
<CustomizedSwitch modeStatus={modeStatus} />
</button>
Expand Down

0 comments on commit 5abec70

Please sign in to comment.