diff --git a/packages/bridge-ui/.env.example b/packages/bridge-ui/.env.example
index 96934f9c0a6..35a9b244252 100644
--- a/packages/bridge-ui/.env.example
+++ b/packages/bridge-ui/.env.example
@@ -7,6 +7,9 @@ export PUBLIC_DEFAULT_SWAP_URL=https://
# Use the bridge guide Urls
export PUBLIC_GUIDE_URL=https://
+# If it's a testnet, set a name here to show in the UI
+export PUBLIC_TESTNET_NAME=""
+
# WalletConnect Project ID
export PUBLIC_WALLETCONNECT_PROJECT_ID=""
diff --git a/packages/bridge-ui/src/components/Header/Header.svelte b/packages/bridge-ui/src/components/Header/Header.svelte
index a4cec7da3ab..4f17b9b9ecc 100644
--- a/packages/bridge-ui/src/components/Header/Header.svelte
+++ b/packages/bridge-ui/src/components/Header/Header.svelte
@@ -3,7 +3,6 @@
import BridgeTabs from '$components/Bridge/BridgeTabs.svelte';
import { ConnectButton } from '$components/ConnectButton';
import { Icon } from '$components/Icon';
- import { LogoWithText } from '$components/Logo';
import { drawerToggleId } from '$components/SideNavigation';
import { ThemeButton } from '$components/ThemeButton';
import { account } from '$stores/account';
@@ -29,8 +28,6 @@
md:px-10
md:py-7
">
-
-
{#if isBridgePage || isTransactionsPage}
diff --git a/packages/bridge-ui/src/components/SideNavigation/SideNavigation.svelte b/packages/bridge-ui/src/components/SideNavigation/SideNavigation.svelte
index b8ab88500b7..0699c446f6c 100644
--- a/packages/bridge-ui/src/components/SideNavigation/SideNavigation.svelte
+++ b/packages/bridge-ui/src/components/SideNavigation/SideNavigation.svelte
@@ -12,9 +12,15 @@
import { LinkButton } from '$components/LinkButton';
import { LogoWithText } from '$components/Logo';
import { ThemeButton } from '$components/ThemeButton';
- import { PUBLIC_DEFAULT_EXPLORER, PUBLIC_DEFAULT_SWAP_URL, PUBLIC_GUIDE_URL } from '$env/static/public';
+ import {
+ PUBLIC_DEFAULT_EXPLORER,
+ PUBLIC_DEFAULT_SWAP_URL,
+ PUBLIC_GUIDE_URL,
+ PUBLIC_TESTNET_NAME,
+ } from '$env/static/public';
import { connectedSourceChain } from '$stores/network';
+ let testnetName = PUBLIC_TESTNET_NAME || '';
let drawerToggleElem: HTMLInputElement;
function closeDrawer() {
@@ -34,6 +40,8 @@
$: isBridgePage = $page.route.id === '/' || $page.route.id === '/nft';
$: isFaucetPage = $page.route.id === '/faucet';
$: isTransactionsPage = $page.route.id === '/transactions';
+
+ $: hasTestnetName = testnetName !== '';
@@ -53,9 +61,14 @@
-->
-
-
-
+
@@ -70,9 +83,15 @@
md:py-8
md:w-[226px]
">
-
-
-
+
+