From d1b562bc688cb8b73188ad8edd650b231af55c19 Mon Sep 17 00:00:00 2001 From: SecretSaturn <94856309+SecretSaturn@users.noreply.github.com> Date: Thu, 12 Dec 2024 02:57:47 +0100 Subject: [PATCH] Clean Bridge page --- src/pages/bridge/Bridge.tsx | 86 ++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 45 deletions(-) diff --git a/src/pages/bridge/Bridge.tsx b/src/pages/bridge/Bridge.tsx index af4c8248..f65441cc 100644 --- a/src/pages/bridge/Bridge.tsx +++ b/src/pages/bridge/Bridge.tsx @@ -2,12 +2,10 @@ import { faArrowUpRightFromSquare, faShuffle } from '@fortawesome/free-solid-svg import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { Link } from 'react-router-dom' import { Helmet } from 'react-helmet-async' -import { bridgeJsonLdSchema, bridgePageDescription, bridgePageTitle, formatNumber, pageTitle } from 'utils/commons' -import mixpanel from 'mixpanel-browser' +import { bridgeJsonLdSchema, bridgePageDescription, bridgePageTitle } from 'utils/commons' import { useEffect, useState } from 'react' import { trackMixPanelEvent } from 'utils/commons' import SquidModal from './SquidModal' -import { useSecretNetworkClientStore } from 'store/secretNetworkClient' import Title from 'components/Title' import { useUserPreferencesStore } from 'store/UserPreferences' import SwingModal from './SwingModal' @@ -22,8 +20,6 @@ function Bridge() { const [isSwingModalOpen, setIsSwingModalOpen] = useState(false) const [isSilentModalOpen, setIsSilentModalOpen] = useState(false) - const { walletAddress } = useSecretNetworkClientStore() - return ( <> @@ -53,22 +49,34 @@ function Bridge() {
- {/* SilentSwap Section */} + {/* Secret Tunnel Section */}

- SilentSwap is the official privacy cross-chain aggregator for Secret Network. It offers a fast, cheap, and - convenient way to privately and securely swap your assets by leveraging Secret Network's confidential - computing layer. SilentSwap obfuscates the trace between sender and receiver in an entirely noncustodial, - trustless, and permisionless manner. It is fully compliant and allows users to trade or transfer in private, - all abstracted in a seamless user experience. + Use the{' '} + { + trackMixPanelEvent('Clicked Secret Tunnel link (from Bridge page)') + }} + > + Secret Tunnel + {' '} + to bridge your assets from blockchains such as Ethereum, Binance Smart Chain (BSC), and Axelar to the Secret + Network.

{ + trackMixPanelEvent('Clicked Secret Tunnel link (from Bridge page)') + }} > - Go to Silent Swap + Go to Secret Tunnel
@@ -97,38 +105,6 @@ function Bridge() {

- {/* Secret Tunnel Section */} -
-

- Use the{' '} - { - trackMixPanelEvent('Clicked Secret Tunnel link (from Bridge page)') - }} - > - Secret Tunnel - {' '} - to bridge your assets from blockchains such as Ethereum, Binance Smart Chain (BSC), and Axelar to the Secret - Network. -

- { - trackMixPanelEvent('Clicked Secret Tunnel link (from Bridge page)') - }} - > - Go to Secret Tunnel - - -
- {/* Squid Router Section */}

Alternatively, use Squid Router to bridge your assets into Secret Network.

@@ -158,6 +134,26 @@ function Bridge() { Use Swing Swap
+ + {/* SilentSwap Section */} +
+

+ SilentSwap is the official privacy cross-chain aggregator for Secret Network. It offers a fast, cheap, and + convenient way to privately and securely swap your assets by leveraging Secret Network's confidential + computing layer. SilentSwap obfuscates the trace between sender and receiver in an entirely noncustodial, + trustless, and permisionless manner. It is fully compliant and allows users to trade or transfer in private, + all abstracted in a seamless user experience. +

+ + Go to Silent Swap + + +
{/* Modals should be outside the divided container to avoid being affected by divide-y */}