-
Notifications
You must be signed in to change notification settings - Fork 1
Navbar Navbutton issue #2
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requested
After clicking Navitems should show a popup, but only the user profile is showing a popup and other icons don't show any popup the issue may be with customFunc related.
`const NavButton = ({ title, customFunc, icon, color, dotColor }) => (
<button
type="button"
onClick={() => customFunc()}
style={{ color }}
className="relative text-xl rounded-full p-3 hover:bg-light-gray"
>
<span
style={{ background: dotColor }}
className="absolute inline-flex rounded-full h-2 w-2 right-2 top-2"
/>
{icon}
);
<NavButton
title="Menu"
customFunc={handleActiveMenu}
color="blue"
icon={}
/>
`