Skip to content

Commit

Permalink
feat: network dropdown update
Browse files Browse the repository at this point in the history
  • Loading branch information
He1DAr committed Jun 4, 2024
1 parent e5eebca commit 82ee550
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/_components/NavBar/NetworkLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const NetworkLabel: FC<{ network: Network }> = ({ network }) => {
<Badge bg={`bg4.${colorMode}`} ml="8px" color={`textCaption.${colorMode}`}>
subnet
</Badge>
) : network.label === 'Stacks Testnet' ? (
) : network.label === 'Stacks Testnet (Primary)' ? (
<Badge
color={greenBadgeColor}
bg={greenBadgeBg}
Expand Down
2 changes: 1 addition & 1 deletion src/app/_components/PageWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export function PageWrapper({
<Text fontWeight={'bold'} display={'inline'}>
Testnet Update:
</Text>{' '}
Primary Testnet is now Live and ready to use. More details{' '}
The Primary Stacks Testnet is reset and now live on Bitcoin Regtest. More details{' '}
<TextLink
href="https://docs.stacks.co/nakamoto-upgrade/nakamoto-and-primary-testnet"
target="_blank"
Expand Down
14 changes: 7 additions & 7 deletions src/common/context/GlobalContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,27 +121,27 @@ export const AppContextProvider: FC<{
mode: NetworkModes.Mainnet,
},
[apiUrls[NetworkModes.Testnet]]: {
label: 'Stacks Testnet',
label: 'Stacks Testnet (Primary)',
url: apiUrls[NetworkModes.Testnet],
btcBlockBaseUrl: NetworkModeBtcBlockBaseUrlMap[NetworkModes.Testnet],
btcTxBaseUrl: NetworkModeBtcTxBaseUrlMap[NetworkModes.Testnet],
btcAddressBaseUrl: NetworkModeBtcAddressBaseUrlMap[NetworkModes.Testnet],
networkId: ChainID.Testnet,
mode: NetworkModes.Testnet,
},
'https://api.old.testnet.hiro.so': {
label: 'Stacks Testnet (archive)',
url: 'https://api.old.testnet.hiro.so',
'https://api.nakamoto.testnet.hiro.so': {
label: 'Nakamoto Testnet',
url: 'https://api.nakamoto.testnet.hiro.so',
btcBlockBaseUrl: NetworkModeBtcBlockBaseUrlMap[NetworkModes.Testnet],
btcTxBaseUrl: NetworkModeBtcTxBaseUrlMap[NetworkModes.Testnet],
btcAddressBaseUrl: NetworkModeBtcAddressBaseUrlMap[NetworkModes.Testnet],
networkId: ChainID.Testnet,
mode: NetworkModes.Testnet,
isCustomNetwork: true,
},
'https://api.nakamoto.testnet.hiro.so': {
label: 'Nakamoto Testnet',
url: 'https://api.nakamoto.testnet.hiro.so',
'https://api.old.testnet.hiro.so': {
label: 'Stacks Testnet (Archive)',
url: 'https://api.old.testnet.hiro.so',
btcBlockBaseUrl: NetworkModeBtcBlockBaseUrlMap[NetworkModes.Testnet],
btcTxBaseUrl: NetworkModeBtcTxBaseUrlMap[NetworkModes.Testnet],
btcAddressBaseUrl: NetworkModeBtcAddressBaseUrlMap[NetworkModes.Testnet],
Expand Down

0 comments on commit 82ee550

Please sign in to comment.