Add a GitHub repo link to the nav (#35)#52
Conversation
There was a problem hiding this comment.
Code Review
This pull request adds a GitHub link to the navigation actions. To support this, the IconButton component is updated to render an anchor (<a>) tag when an href prop is provided, and a new GitHubIcon component is introduced. The review feedback correctly points out that when href is provided, any passed onClick handler is ignored, and suggests forwarding the onClick prop to the anchor tag.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
🚀 Vercel preview deployed Preview URL: https://earth-prints-exqp6guoq-anastasiia-s-projects10.vercel.app |
Fixes #35.
Adds a GitHub icon-link to the nav so people can jump to the source repo.
What
GitHubIcon(matches the existing 16px icon set).IconButtongains an optionalhrefprop: when set, it renders an<a target="_blank" rel="noreferrer noopener">with the same styling instead of a<button>.NavActionsrenders the icon-link (label "View source on GitHub") pointing athttps://github.com/EarthyScience/EarthPrints, placed before the About dropdown and theme toggle.Verify
eslintclean on the changed files.tsc --noEmitshows only pre-existing errors inmapLabels.test.ts, none from this change.