Skip to content

Commit

Permalink
icon for hamburger menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph1so committed Aug 13, 2024
1 parent bb940b8 commit 6352248
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Navbar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from "react";
import { Link } from "react-router-dom";
import "./Navbar.css";
import { IoMenu } from "react-icons/io5";

const Navbar = () => {
const [isOpen, setIsOpen] = useState(false);
Expand All @@ -19,7 +20,7 @@ const Navbar = () => {
Endure AI
</Link>
<button className="menu-toggle" onClick={toggleMenu}>
<IoMenu />
</button>
<div className={`icon-container ${isOpen ? "open" : ""}`}>
<Link to="/workout" className="navbar-links" onClick={closeMenu}>
Expand Down

0 comments on commit 6352248

Please sign in to comment.