Added links to logged in page, those links still don't work.

This commit is contained in:
2026-01-06 08:37:11 -06:00
parent eac0d6e970
commit a69d8c0291
6 changed files with 27 additions and 12 deletions

View File

@ -19,18 +19,33 @@ export const Header = () => {
{user ? (
// Logged in navigation
<nav className="flex items-center gap-6">
{user.is_admin && (
<Link to="/admin" className="text-gray-700 hover:text-primary transition-colors">
Admin
<Link to="/sports" className="text-gray-700 hover:text-primary transition-colors">
Sports
</Link>
<Link to="/live" className="text-gray-700 hover:text-primary transition-colors">
Live
</Link>
<Link to="/new-bets" className="text-gray-700 hover:text-primary transition-colors">
New Bets
</Link>
<Link to="/watchlist" className="text-gray-700 hover:text-primary transition-colors">
Watchlist
</Link>
<div className="flex items-center gap-4 pl-4 border-l">
{user.is_admin && (
<Link to="/admin" className="text-gray-700 hover:text-primary transition-colors">
Admin
</Link>
)}
<Link to="/my-bets" className="text-gray-700 hover:text-primary transition-colors">
My Bets
</Link>
)}
<Link to="/my-bets" className="text-gray-700 hover:text-primary transition-colors">
My Bets
</Link>
<Link to="/wallet" className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
<Wallet size={18} />
Wallet
</Link>
<Link to="/wallet" className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
<Wallet size={18} />
Wallet
</Link>
</div>
{/* Web3 Wallet Connection */}
{isConnected ? (
@ -51,7 +66,7 @@ export const Header = () => {
</button>
)}
<div className="flex items-center gap-4 pl-6 border-l">
<div className="flex items-center gap-4 pl-4 border-l">
<Link to="/profile" className="flex items-center gap-2 text-gray-700 hover:text-primary transition-colors">
<User size={18} />
{user.display_name || user.username}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 236 KiB

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 239 KiB

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 244 KiB