Skip to content

Commit

Permalink
Merge pull request #816 from blockscout/testnet-label-fix
Browse files Browse the repository at this point in the history
add condition for testnet badge
  • Loading branch information
tom2drum authored May 11, 2023
2 parents f0994ae + 3e8fbfc commit 400bef9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/values/l2-optimism-goerli/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ frontend:
NEXT_PUBLIC_HOMEPAGE_CHARTS:
_default: "['daily_txs']"
NEXT_PUBLIC_IS_TESTNET:
_default: "true"
_default: true
NEXT_PUBLIC_VISUALIZE_API_HOST:
_default: https://visualizer-optimism-goerli.test.aws-k8s.blockscout.com
NEXT_PUBLIC_IS_L2_NETWORK:
Expand Down
2 changes: 1 addition & 1 deletion deploy/values/review-l2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ frontend:
NEXT_PUBLIC_HOMEPAGE_CHARTS:
_default: "['daily_txs']"
NEXT_PUBLIC_IS_TESTNET:
_default: "true"
_default: true
NEXT_PUBLIC_VISUALIZE_API_HOST:
_default: https://visualizer-optimism-goerli.test.aws-k8s.blockscout.com
NEXT_PUBLIC_IS_L2_NETWORK:
Expand Down
2 changes: 1 addition & 1 deletion ui/snippets/header/Burger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Burger = () => {
<DrawerOverlay/>
<DrawerContent maxWidth="260px">
<DrawerBody p={ 6 } display="flex" flexDirection="column">
<Icon as={ testnetIcon } h="14px" w="auto" color="red.400" alignSelf="flex-start"/>
{ appConfig.network.isTestnet && <Icon as={ testnetIcon } h="14px" w="auto" color="red.400" alignSelf="flex-start"/> }
<Flex alignItems="center" justifyContent="space-between">
<NetworkLogo onClick={ handleNetworkLogoClick }/>
{ appConfig.featuredNetworks ? (
Expand Down
2 changes: 1 addition & 1 deletion ui/snippets/navigation/NavigationDesktop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const NavigationDesktop = () => {
width={{ lg: isExpanded ? '229px' : '92px', xl: isCollapsed ? '92px' : '229px' }}
{ ...getDefaultTransitionProps({ transitionProperty: 'width, padding' }) }
>
<Icon as={ testnetIcon } h="14px" w="auto" color="red.400" pl={ 3 } alignSelf="flex-start"/>
{ appConfig.network.isTestnet && <Icon as={ testnetIcon } h="14px" w="auto" color="red.400" pl={ 3 } alignSelf="flex-start"/> }
<Box
as="header"
display="flex"
Expand Down

0 comments on commit 400bef9

Please sign in to comment.