Skip to content

Commit

Permalink
Updated Dark Mode Toggle
Browse files Browse the repository at this point in the history
Signed-off-by: Hemashree M S <[email protected]>
  • Loading branch information
Hemashree21 committed May 21, 2024
1 parent 2ae9359 commit c255f86
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ function Header() {
<img width={70} src="\assets\icon.png" alt="Logo" />
</Link>
</div>
<div className="switch">
<Switch style={{ backgroundColor: themes === "dark" ? "#000000" : ""}} onChange={handleThemeChange} checked={themes === "dark"} checkedChildren="Dark Mode" unCheckedChildren="Light Mode" />
</div>
<div>
<ul className="hidden md:flex gap-8 font-medium">
<li className="hover:scale-110 duration-100 ease-in-out">
Expand Down Expand Up @@ -169,6 +166,7 @@ function Header() {
<Link to="signup">Signup</Link>
</button>
</div>
<Switch style={{ backgroundColor: themes === "dark" ? "#000000" : ""}} onChange={handleThemeChange} checked={themes === "dark"} checkedChildren="Dark Mode" unCheckedChildren="Light Mode" />
</div>
{isNavBarOpen && (
<MenuOverlay links={navLinks} setIsNavBarOpen={setIsNavBarOpen} />
Expand Down

0 comments on commit c255f86

Please sign in to comment.