Skip to content

Commit

Permalink
Hamburger icon needs to be replaced with close icon pooranjoyb#390
Browse files Browse the repository at this point in the history
  • Loading branch information
kapilG0 committed Aug 8, 2024
1 parent cd00fb5 commit c8d72b9
Show file tree
Hide file tree
Showing 5 changed files with 6,286 additions and 2,690 deletions.
9 changes: 9 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 @@ -25,6 +25,7 @@
"bcryptjs": "^2.4.3",
"chart.js": "^4.4.3",
"cookies-next": "^4.2.1",
"font-awesome": "^4.7.0",
"framer-motion": "^11.2.6",
"jwt-decode": "^4.0.0",
"react": "^18.2.0",
Expand Down
19 changes: 4 additions & 15 deletions src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,23 +285,12 @@ function Navbar() {
</div>
<div className="lg:hidden">
<button
className="btn btn-ghost btn-circle"
className={`btn btn-ghost btn-circle fa ${showHamburgerMenu?'fa-times':'fa-bars'}`}
// <i onClick={handleToggleHamburgerMenu}
// className={}
onClick={handleToggleHamburgerMenu}
>
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-5 w-5"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M4 6h16M4 12h16m-7 6h7"
/>
</svg>

</button>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import 'font-awesome/css/font-awesome.min.css';
@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
Loading

0 comments on commit c8d72b9

Please sign in to comment.