diff --git a/apps/rays-dashboard/components/molecules/BridgeSwap/BridgeSwap.tsx b/apps/rays-dashboard/components/molecules/BridgeSwap/BridgeSwap.tsx index c02752b1ac..d26c8597b3 100644 --- a/apps/rays-dashboard/components/molecules/BridgeSwap/BridgeSwap.tsx +++ b/apps/rays-dashboard/components/molecules/BridgeSwap/BridgeSwap.tsx @@ -1,13 +1,5 @@ -import { useEffect, useMemo } from 'react' -import { LiFiWalletManagement, supportedWallets } from '@lifi/wallet-management' -import { LiFiWidget } from '@lifi/widget' -import { Button } from '@summerfi/app-ui' +import { Button, Text } from '@summerfi/app-ui' import { IconX } from '@tabler/icons-react' -import { useConnectWallet } from '@web3-onboard/react' - -import { BridgeSwapOnboarding } from '@/components/molecules/BridgeSwap/BridgeSwapOnboarding' -import { swapWidgetConfig } from '@/constants/swap-widget-config' -import { useOnboarding } from '@/helpers/use-onboarding' import bridgeSwapHandlerStyles from './BridgeSwapHandler.module.scss' @@ -16,37 +8,15 @@ type BridgeSwapHandlerProps = { setShowNavigationModule: (show: 'swap' | 'bridge' | undefined) => void } -export default ({ showNavigationModule, setShowNavigationModule }: BridgeSwapHandlerProps) => { - const [{ wallet }] = useConnectWallet() - const [isOnboarded] = useOnboarding('SwapWidget') - const walletManagement = useMemo(() => new LiFiWalletManagement(), []) - - useEffect(() => { - async function autoConnectLiFi() { - if (!wallet || !isOnboarded) { - const activeWallets = supportedWallets.filter( - (supportedWallet) => wallet?.label === supportedWallet.name, - ) - - if (!activeWallets.length) { - return - } - await walletManagement.connect(activeWallets[0]) - } - } - void autoConnectLiFi() - }, [isOnboarded, wallet, walletManagement]) - +export default ({ + showNavigationModule: _showNavigationModule, + setShowNavigationModule, +}: BridgeSwapHandlerProps) => { return ( <> - {!isOnboarded ? ( - - ) : ( - - )} + + Disabled temporarily. +