Skip to content

add gist card and fatch gist data#2

Open
Emumba-Abdullah wants to merge 1 commit intomasterfrom
add-gist-card-and-fetchGists-data
Open

add gist card and fatch gist data#2
Emumba-Abdullah wants to merge 1 commit intomasterfrom
add-gist-card-and-fetchGists-data

Conversation

@Emumba-Abdullah
Copy link
Copy Markdown
Owner

No description provided.

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

const menuItems = [
Copy link
Copy Markdown

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);
Copy link
Copy Markdown

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)}
Copy link
Copy Markdown

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.

3 participants