fix hydration error

This commit is contained in:
thesn10
2026-05-22 21:07:49 +02:00
parent 08fe8a9bfc
commit b56bada0fa

View File

@@ -1,9 +1,13 @@
'use client'
import React from 'react'
import { useState, useEffect } from 'react'
import { WalletMultiButton } from '@solana/wallet-adapter-react-ui'
export function WalletButton() {
const [mounted, setMounted] = useState(false)
useEffect(() => setMounted(true), [])
if (!mounted) return null
return (
<WalletMultiButton
style={{