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:
@@ -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">
|
||||||
|
|||||||
@@ -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 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user