Skip to content

Conversation

@Emumba-Abdullah
Copy link
Owner

No description provided.

const [isMenuOpen, setIsMenuOpen] = useState(false);
const navigate = useNavigate();

const menuItems = [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move static values outside the component.

photoURL: user.photoURL,
})
);
console.log(isAuthenticated);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove extra console logs when done with implementation.

{isAuthenticated ? (
<div
className="menu-container"
onMouseEnter={() => setIsMenuOpen(true)}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid using inline functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants