removed unnecassry decs
This commit is contained in:
parent
24455e2270
commit
916e73c9cd
|
|
@ -1,7 +1,6 @@
|
|||
import Footer from "@/components/Footer";
|
||||
import Header from "@/components/Header";
|
||||
import HeroSection from "@/components/Home";
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import Link from "next/link";
|
|||
import Image from "next/image";
|
||||
import { FaTelegram, FaXTwitter } from "react-icons/fa6";
|
||||
import { useState } from "react";
|
||||
import { PrivyProvider, usePrivy } from "@privy-io/react-auth";
|
||||
import { PrivyProvider } from "@privy-io/react-auth";
|
||||
import PrivyButton from "./PrivyButton";
|
||||
import { toSolanaWalletConnectors } from "@privy-io/react-auth/solana";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
"use client";
|
||||
|
||||
import { useState, useEffect, useRef } from "react";
|
||||
import { usePrivy, useSolanaWallets, useWallets } from "@privy-io/react-auth";
|
||||
import { usePrivy, useSolanaWallets } from "@privy-io/react-auth";
|
||||
import { Connection, PublicKey } from "@solana/web3.js"; // Solana Web3.js imports
|
||||
import { toast, ToastContainer } from "react-toastify";
|
||||
import "react-toastify/dist/ReactToastify.css";
|
||||
import bs58 from "bs58"; // Import bs58 library to validate the address format
|
||||
|
||||
export default function PrivyButton() {
|
||||
const { login, logout, user } = usePrivy();
|
||||
|
|
@ -13,7 +12,7 @@ export default function PrivyButton() {
|
|||
const [isModalOpen, setIsModalOpen] = useState(false);
|
||||
const [solWallet, setSolWallet] = useState("");
|
||||
const [solBalance, setSolBalance] = useState("--"); // Placeholder
|
||||
const [tokenBalance, setTokenBalance] = useState("--"); // Placeholder
|
||||
const [tokenBalance] = useState("--"); // Placeholder
|
||||
const modalRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user