feat: add dashboard button to header for quick navigation

This commit is contained in:
seaznCode 2025-11-30 13:29:35 +01:00
parent c1e250bab1
commit fbe8f09f2f

View File

@ -355,6 +355,13 @@ export default function Header() {
{user?.email || 'user@example.com'}
</div>
</div>
<button
onClick={() => router.push('/dashboard')}
className="flex items-center gap-x-2 w-full text-left p-2 text-sm text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5 rounded-md"
>
<Bars3Icon className="size-5 text-gray-400" />
Dashboard
</button>
<button
onClick={() => router.push('/profile')}
className="flex items-center gap-x-2 w-full text-left p-2 text-sm text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-white/5 rounded-md"
@ -555,6 +562,12 @@ export default function Header() {
{user?.email || 'user@example.com'}
</div>
</div>
<button
onClick={() => { router.push('/dashboard'); setMobileMenuOpen(false); }}
className="block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 dark:text-white hover:bg-white/5 w-full text-left"
>
Dashboard
</button>
<button
onClick={() => { router.push('/profile'); setMobileMenuOpen(false); }}
className="block rounded-lg px-3 py-2 text-base/7 font-semibold text-gray-900 dark:text-white hover:bg-white/5 w-full text-left"