Skip to content

Commit 143b285

Browse files
Alexisclaude
andcommitted
fix(dashboard-next): add public dir, fix WalletButton SSR with dynamic import
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 77c0b97 commit 143b285

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

dashboard-next/components/layout/Header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
'use client'
22
import { useState } from 'react'
3+
import dynamic from 'next/dynamic'
34
import { useDashboard } from '@/context/DashboardContext'
4-
import { WalletButton } from '@/components/wallet/WalletButton'
55
import { TOKEN } from '@/lib/calculations'
66

7+
const WalletButton = dynamic(() => import('@/components/wallet/WalletButton').then(m => m.WalletButton), { ssr: false })
8+
79
export function Header() {
810
const { loading, lastUpdated, refresh } = useDashboard()
911
const [copied, setCopied] = useState(false)

dashboard-next/public/.gitkeep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)