Skip to content

docs: fix duplicate network anchor IDs - #665

Open
callumweb3 wants to merge 1 commit into
inkonchain:mainfrom
callumweb3:patch-2
Open

docs: fix duplicate network anchor IDs#665
callumweb3 wants to merge 1 commit into
inkonchain:mainfrom
callumweb3:patch-2

Conversation

@callumweb3

Copy link
Copy Markdown

AddNetworkButton is rendered twice in src/pages/general/connect-wallet.mdx for mainnet and sepolia, while NetworkType explicitly defines these as separate network values in src/utils/networks.ts.

Previously, the component used a hardcoded id="mainnet" and href="#mainnet", causing both rendered sections to use the same anchor target.

Updated src/components/AddNetworkButton.tsx to generate the anchor from the existing network prop:

  • mainnet > #mainnet
  • sepolia > #sepolia

Also removed the unused CheckIcon import.

This gives each network section a unique anchor and removes the unused import.

`AddNetworkButton` is rendered twice in `src/pages/general/connect-wallet.mdx` for `mainnet` and `sepolia` (approximately lines 7–9), while `NetworkType` explicitly defines these as separate network values in `src/utils/networks.ts` (approximately line 3).

Previously, the component used a hardcoded `id="mainnet"` and `href="#mainnet"`, causing both rendered sections to use the same anchor target.

Updated `src/components/AddNetworkButton.tsx` (approximately lines 31–36) to generate the anchor from the existing `network` prop:

* `mainnet` > `#mainnet`
* `sepolia` > `#sepolia`

Also removed the unused `CheckIcon` import.

This gives each network section a unique anchor and removes the unused import.
@callumweb3
callumweb3 requested a review from a team as a code owner September 7, 2026 13:26
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.

1 participant