From 0b3b48374320e8d1489fac3f124ac09adfbdbef8 Mon Sep 17 00:00:00 2001 From: lbqds Date: Wed, 8 Nov 2023 09:17:04 +0800 Subject: [PATCH] Fix bridge link --- explorer/src/components/Navbar.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/explorer/src/components/Navbar.tsx b/explorer/src/components/Navbar.tsx index 4817651f..a9012209 100644 --- a/explorer/src/components/Navbar.tsx +++ b/explorer/src/components/Navbar.tsx @@ -1,12 +1,17 @@ import { AppBar, Hidden, Button, Box, Link, Toolbar } from "@mui/material"; import React from "react"; import LogoLink from "./LogoLink"; +import { useNetworkContext } from "../contexts/NetworkContext"; const linkStyle = { ml: 3, textUnderlineOffset: 6 }; const linkActiveStyle = { textDecoration: "underline" }; -const NavBar = () => ( - { + const { activeNetwork } = useNetworkContext() + const bridgeLink = activeNetwork.name === 'mainnet' + ? "https://bridge.alephium.org" + : "https://testnet.bridge.alephium.org" + return ( ( ( menu */} - -); + ) +}; export default NavBar;