diff --git a/webapp/src/components/Header.tsx b/webapp/src/components/Header.tsx index 5d3620d..282da76 100644 --- a/webapp/src/components/Header.tsx +++ b/webapp/src/components/Header.tsx @@ -1,7 +1,6 @@ import { useNavigate } from "react-router-dom"; import { useContext, useEffect, useState } from "react"; import { AuthContext } from "../context/AuthContext"; -import { useAccount, useSignMessage, useNetwork } from "wagmi"; import { getChallengeId, getToken } from "../modules/api"; import { useWallet } from "@aptos-labs/wallet-adapter-react"; @@ -12,7 +11,6 @@ const Header = () => { const [message, setMessage] = useState(""); const [challengeId, setChallengeId] = useState(""); const [signature, setSignature] = useState(); - const { signMessageAsync } = useSignMessage(); const { connect, diff --git a/webapp/src/index.tsx b/webapp/src/index.tsx index 5895f7f..c9383dd 100644 --- a/webapp/src/index.tsx +++ b/webapp/src/index.tsx @@ -3,48 +3,48 @@ import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; -import "@rainbow-me/rainbowkit/styles.css"; -import { - getDefaultWallets, - RainbowKitProvider, - midnightTheme, -} from "@rainbow-me/rainbowkit"; -import { configureChains, createClient, WagmiConfig } from "wagmi"; -import { mainnet, polygon, optimism, arbitrum, goerli } from "wagmi/chains"; -import { publicProvider } from "wagmi/providers/public"; +// import "@rainbow-me/rainbowkit/styles.css"; +// import { +// getDefaultWallets, +// RainbowKitProvider, +// midnightTheme, +// } from "@rainbow-me/rainbowkit"; +// import { configureChains, createClient, WagmiConfig } from "wagmi"; +// import { mainnet, polygon, optimism, arbitrum, goerli } from "wagmi/chains"; +// import { publicProvider } from "wagmi/providers/public"; import { AuthProvider } from "./context/AuthContext"; import { PetraWallet } from "petra-plugin-wallet-adapter"; import { AptosWalletAdapterProvider } from "@aptos-labs/wallet-adapter-react"; -const { chains, provider, webSocketProvider } = configureChains( - [ - mainnet, - polygon, - optimism, - arbitrum, - ...(process.env.REACT_APP_ENABLE_TESTNETS === "true" ? [goerli] : []), - ], - [publicProvider()] -); +// const { chains, provider, webSocketProvider } = configureChains( +// [ +// mainnet, +// polygon, +// optimism, +// arbitrum, +// ...(process.env.REACT_APP_ENABLE_TESTNETS === "true" ? [goerli] : []), +// ], +// [publicProvider()] +// ); -const { connectors } = getDefaultWallets({ - appName: "Sotreus", - chains, - projectId: process.env.WALLET_CONNECT_PROJECT_ID, -}); +// const { connectors } = getDefaultWallets({ +// appName: "Sotreus", +// chains, +// projectId: process.env.WALLET_CONNECT_PROJECT_ID, +// }); -const wagmiClient = createClient({ - autoConnect: true, - connectors, - provider, - webSocketProvider, -}); +// const wagmiClient = createClient({ +// autoConnect: true, +// connectors, +// provider, +// webSocketProvider, +// }); const wallets = [new PetraWallet()]; ReactDOM.render( - + {/* - - - - - - - + > */} + + + + + + {/* + */} , document.getElementById("root") );