From 3e8fbfcb48af27f2f0e02e60a7d35039b75a65eb Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 11 May 2023 10:08:53 -0300 Subject: [PATCH] add condition for testnet badge --- deploy/values/l2-optimism-goerli/values.yaml | 2 +- deploy/values/review-l2/values.yaml | 2 +- ui/snippets/header/Burger.tsx | 2 +- ui/snippets/navigation/NavigationDesktop.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deploy/values/l2-optimism-goerli/values.yaml b/deploy/values/l2-optimism-goerli/values.yaml index 3c68d214ed..7f184e1f52 100644 --- a/deploy/values/l2-optimism-goerli/values.yaml +++ b/deploy/values/l2-optimism-goerli/values.yaml @@ -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: diff --git a/deploy/values/review-l2/values.yaml b/deploy/values/review-l2/values.yaml index 35b9cd7322..a8c73b094b 100644 --- a/deploy/values/review-l2/values.yaml +++ b/deploy/values/review-l2/values.yaml @@ -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: diff --git a/ui/snippets/header/Burger.tsx b/ui/snippets/header/Burger.tsx index 0f0ebe4780..bec92edd1a 100644 --- a/ui/snippets/header/Burger.tsx +++ b/ui/snippets/header/Burger.tsx @@ -44,7 +44,7 @@ const Burger = () => { - + { appConfig.network.isTestnet && } { appConfig.featuredNetworks ? ( diff --git a/ui/snippets/navigation/NavigationDesktop.tsx b/ui/snippets/navigation/NavigationDesktop.tsx index d96370b9a5..5448476efb 100644 --- a/ui/snippets/navigation/NavigationDesktop.tsx +++ b/ui/snippets/navigation/NavigationDesktop.tsx @@ -61,7 +61,7 @@ const NavigationDesktop = () => { width={{ lg: isExpanded ? '229px' : '92px', xl: isCollapsed ? '92px' : '229px' }} { ...getDefaultTransitionProps({ transitionProperty: 'width, padding' }) } > - + { appConfig.network.isTestnet && }