fix: update authentication and navigation components
This commit is contained in:
@@ -39,6 +39,7 @@ export default function Navigation() {
|
||||
}
|
||||
|
||||
// Determine wordmark href based on session and role
|
||||
// If session exists but role is not yet loaded, use /rankings as default for players
|
||||
const wordmarkHref = session
|
||||
? (userRole === "club_admin" || userRole === "site_admin")
|
||||
? "/admin"
|
||||
@@ -50,12 +51,12 @@ export default function Navigation() {
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
<div className="flex justify-between h-16">
|
||||
<div className="flex items-center">
|
||||
<a
|
||||
href={wordmarkHref}
|
||||
<Link
|
||||
href="/wordmark-redirect"
|
||||
className="text-xl font-bold text-gray-900 no-underline"
|
||||
>
|
||||
EuchreCamp
|
||||
</a>
|
||||
</Link>
|
||||
<div className="hidden md:ml-6 md:flex md:space-x-8">
|
||||
<Link
|
||||
href="/rankings"
|
||||
|
||||
Reference in New Issue
Block a user