Add browser-specific extension links with client-side detection - #13
Merged
Merged
Conversation
The extension download buttons were hardcoded to the Chrome Web Store, and the Firefox link was a "#" placeholder. Add a useExtensionLink hook that sends Firefox users to addons.mozilla.org and everyone else to the Chrome Web Store (which also covers Brave, Edge, Opera, etc.). The static pre-render uses the Chrome link and swaps after hydration via useSyncExternalStore, so there is no hydration mismatch. Fixes stellar/freighter#3015 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GnTyuDj9Tvq7nKx3dTXZgW
✅ Deploy Preview for freighter-website ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Adds browser-aware extension store links with SSR-safe client-side detection.
Changes:
- Added Firefox extension URL and reusable detection hook.
- Updated navigation and download CTAs with browser-specific links.
| File | Description |
|---|---|
src/lib/use-extension-link.ts |
Detects the browser and selects the extension link. |
src/lib/constants.ts |
Adds the Firefox Add-ons URL. |
src/components/layout/Navbar.tsx |
Uses the detected extension link. |
src/components/home/DownloadCards.tsx |
Uses the detected extension link. |
src/components/home/CTASection.tsx |
Uses the detected extension link. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
piyalbasu
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement browser detection to serve the appropriate extension store link.
resolves stellar/freighter#3015