From ad614aff2fb702f0e5253b6cabc74f999461c511 Mon Sep 17 00:00:00 2001 From: Cody Bender Date: Fri, 9 Aug 2024 16:52:08 -0400 Subject: [PATCH] style: remove disclaimer and center button --- src/pages/ConnectWallet.tsx | 43 +++++++++---------------------------- 1 file changed, 10 insertions(+), 33 deletions(-) diff --git a/src/pages/ConnectWallet.tsx b/src/pages/ConnectWallet.tsx index e904c33..13c959b 100644 --- a/src/pages/ConnectWallet.tsx +++ b/src/pages/ConnectWallet.tsx @@ -1,13 +1,13 @@ import React, { useEffect } from "react"; -import {useLocation, useNavigate, useSearchParams } from "react-router-dom"; +import { useLocation, useNavigate, useSearchParams } from "react-router-dom"; -import { Button, Box, Container, Typography, colors } from "@mui/material"; +import { Button, Box, Container } from "@mui/material"; import { useWalletConnectContext } from "../context/WalletConnectContext"; -import { WALLET_DISCLAIMER_MSG } from "../constants"; const ConnectWallet = () => { - const { connect, session, signClient, checkPersistedState } = useWalletConnectContext(); + const { connect, session, signClient, checkPersistedState } = + useWalletConnectContext(); const navigate = useNavigate(); const location = useLocation(); @@ -28,13 +28,11 @@ const ConnectWallet = () => { if (redirectTo) { navigate(`/${redirectTo}`, { - state: location.state + state: location.state, }); - } - - else { + } else { navigate("/sign-with-nitro-key", { - state: location.state + state: location.state, }); } }, [session, navigate, redirectTo, location.state]); @@ -44,37 +42,16 @@ const ConnectWallet = () => { }; return ( - - - - Disclaimer - - - {WALLET_DISCLAIMER_MSG} - - + -