removed unnecassry decs
This commit is contained in:
parent
b4c0ff9911
commit
24455e2270
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user