diff --git a/web/templates/watchlist.templ b/web/templates/watchlist.templ
index 549521c..9658a8d 100644
--- a/web/templates/watchlist.templ
+++ b/web/templates/watchlist.templ
@@ -2,12 +2,13 @@ package templates
import (
"fmt"
- "mal/internal/database"
- "mal/internal/shared/ui"
+ "mal/internal/db"
+ "mal/web/components"
+ "mal/web/components/watchlist"
"math"
)
-templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentStatus string, sortBy string, sortOrder string) {
+templ Watchlist(entries []db.GetUserWatchListRow, layout string, currentStatus string, sortBy string, sortOrder string) {
@Layout("mal - watchlist", true) {
@@ -34,9 +35,9 @@ templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentSt
Dropped
Completed
- @ui.SortFilter(ui.SortFilterOptions{Sort: sortBy, Order: sortOrder, View: layout, Status: currentStatus})
+ @components.SortFilter(components.SortFilterOptions{Sort: sortBy, Order: sortOrder, View: layout, Status: currentStatus})
if len(entries) == 0 {
- @ui.EmptyState("Nothing here yet") {
+ @components.EmptyState("Nothing here yet") {
if currentStatus == "all" {
Your watchlist is empty.
Search for anime to get started.
} else {
@@ -55,16 +56,17 @@ templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentSt
{ entry.DisplayTitle() }
- @ifHasProgress(entry)
+ @watchlist.Progress(entry)
-
-
- }
+
+
+ }
+
} else {
@@ -87,7 +89,7 @@ templ Watchlist(entries []database.GetUserWatchListRow, layout string, currentSt
{ entry.DisplayTitle() }
- @ifHasProgress(entry)
+ @watchlist.Progress(entry)
|
|