Skip to content

Commit

Permalink
♻️ Navbar Theme Toggle Issue Fixed (HITK-TECH-Community#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShubhamSj07 authored May 15, 2021
1 parent 5be54b9 commit 63e826c
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 0 deletions.
118 changes: 118 additions & 0 deletions frontend/package-lock.json

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

2 changes: 2 additions & 0 deletions frontend/src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export const Navbar = (props) => {
class={style["mobile-toggle"]}
handleClick={props.handleClick}
theme={props.theme}
closeMobileMenu={closeMobileMenu}
/>
</li>
</ul>
Expand All @@ -148,6 +149,7 @@ export const Navbar = (props) => {
class={style["nav-toggle"]}
handleClick={props.handleClick}
theme={props.theme}
closeMobileMenu={closeMobileMenu}
/>
</nav>
</Fragment>
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/util/Toggle/Toggle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const Toggle = (props) => {
className={style["checkbox"]}
checked={props.theme}
onChange={() => props.handleClick()}
onClick={props.closeMobileMenu}
/>
<label htmlFor="check" className={style["label"]}>
<i className={`fas fa-moon ${style["moon"]}`}></i>
Expand Down

0 comments on commit 63e826c

Please sign in to comment.