From ffaf493bf4f5cf740293cfe6f45ab5e0158acabe Mon Sep 17 00:00:00 2001 From: CloudCludfore Date: Fri, 21 Jun 2024 11:27:19 +0700 Subject: [PATCH] update fix wallet connect evm --- src/app/get-aura/layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/get-aura/layout.tsx b/src/app/get-aura/layout.tsx index 72c2771..221fcf2 100644 --- a/src/app/get-aura/layout.tsx +++ b/src/app/get-aura/layout.tsx @@ -3,10 +3,11 @@ import { aura } from "@/common/aura-chain"; import { RainbowKitProvider, getDefaultConfig } from "@rainbow-me/rainbowkit"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { WagmiProvider } from "wagmi"; -import WalletConnectEVM from "./wallet-connect"; import { useEffect } from "react"; import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; +import dynamic from "next/dynamic"; +const WalletConnectEVM = dynamic(() => import("./wallet-connect"), { ssr: false }); // export const metadata: Metadata = { // title: "Get Aura with Aura Network", // description: "", @@ -17,7 +18,6 @@ export default function Layout({ }: Readonly<{ children: React.ReactNode; }>) { - return (