diff --git a/app/voyager/cult/page.tsx b/app/voyager/cult/page.tsx index 565969f..6bb618a 100644 --- a/app/voyager/cult/page.tsx +++ b/app/voyager/cult/page.tsx @@ -3,7 +3,10 @@ import HomeNavbar from "@/app/components/reusable/HomeNavbar"; import React from "react"; import Image from "next/image"; -import { CULT_PAGE_COMMUNITIES_IMAGE, CULT_PAGE_KEYFEATURES_IMAGE } from "@/app/utils/constants"; +import { + CULT_PAGE_COMMUNITIES_IMAGE, + CULT_PAGE_KEYFEATURES_IMAGE, +} from "@/app/utils/constants"; import { v4 as uuidv4 } from "uuid"; import Footer from "@/app/components/reusable/Footer"; @@ -343,12 +346,12 @@ const Cult = () => { * Assemble a zkLogin signature and submit a transaction * https://docs.sui.io/concepts/cryptography/zklogin#assemble-the-zklogin-signature-and-submit-the-transaction */ - const handleJoinClick = async (account: AccountData) => { - await sendTransaction(account, () => { - router.push("/voyager/communities"); // Navigate to the success page - }); - }; - async function sendTransaction(account: AccountData, callback: () => void) { + // const handleJoinClick = async (account: AccountData) => { + // // await sendTransaction(account, () => { + // // router.push("/voyager/communities"); // Navigate to the success page + // // }); + // }; + async function sendTransaction(account: AccountData) { setModalContent("🚀 Sending transaction..."); console.log("[sendTransaction] Starting transaction"); @@ -419,9 +422,9 @@ const Cult = () => { result ); fetchBalances([account]); - if (callback) { - callback(); // Navigate to the success page - } + // if (callback) { + // callback(); // Navigate to the success page + // } }) .catch((error: unknown) => { console.warn( @@ -592,6 +595,68 @@ const Cult = () => { className="mt-10" /> + {/* to get gas fee --------------- */} + {/* {accounts.current.map((acct) => { + const balance = balances.get(acct.userAddr); + const explorerLink = makeExplorerUrl( + NETWORK, + "address", + acct.userAddr + ); + return ( +