Fix header component rendering in bookshelf and dashboard templates

- Changed Header component calls from text to proper templ syntax (@Header)
- Header now properly renders navigation, search, theme switcher, and user menu
- Fixed both bookshelf.templ and dashboard.templ templates
This commit is contained in:
2026-01-29 17:06:49 -05:00
parent 183a0b795c
commit 0ef661d158
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ templ BookShelf(user User) {
</style> </style>
</head> </head>
<body class="theme-tokyo-night"> <body class="theme-tokyo-night">
Header(user, "/bookshelf") @Header(user, "/bookshelf")
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Library Selector --> <!-- Library Selector -->
<div class="library-selector"> <div class="library-selector">
+1 -1
View File
@@ -73,7 +73,7 @@ templ Dashboard(user User) {
</style> </style>
</head> </head>
<body class="theme-tokyo-night"> <body class="theme-tokyo-night">
Header(user, "/dashboard") @Header(user, "/dashboard")
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<!-- Header Section --> <!-- Header Section -->