diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 67f6d86..f28c100 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,7 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; -import { PrivyProvider } from "@privy-io/react-auth"; + const geistSans = Geist({ variable: "--font-geist-sans", subsets: ["latin"], diff --git a/src/components/Header.tsx b/src/components/Header.tsx index a435467..2c77ac8 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -10,7 +10,6 @@ import { toSolanaWalletConnectors } from "@privy-io/react-auth/solana"; export default function Header() { const [isDrawerOpen, setIsDrawerOpen] = useState(false); - const { login, logout, user } = usePrivy(); // Toggle the nav drawer const toggleDrawer = () => { setIsDrawerOpen(!isDrawerOpen); diff --git a/src/components/PrivyButton.tsx b/src/components/PrivyButton.tsx index 2e83bf8..fcfc44b 100644 --- a/src/components/PrivyButton.tsx +++ b/src/components/PrivyButton.tsx @@ -46,14 +46,6 @@ export default function PrivyButton() { }, [user, wallets]); // Added wallets to dependency array // Function to validate if the address is a valid Solana address (base58) - const isValidSolanaAddress = (address: string) => { - try { - bs58.decode(address); // Attempt to decode the address - return true; // If no error, it's a valid base58 Solana address - } catch (e) { - return false; // Invalid address format - } - }; // Close modal when clicking outside useEffect(() => {