removed unnecassry decs

This commit is contained in:
Sewmina 2025-03-30 01:11:08 +05:30
parent b4c0ff9911
commit 24455e2270
3 changed files with 1 additions and 10 deletions

View File

@ -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"],

View File

@ -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);

View File

@ -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(() => {