fix: resolve templ compile errors
This commit is contained in:
@@ -2,14 +2,14 @@ package anime
|
||||
|
||||
import (
|
||||
"mal/integrations/jikan"
|
||||
"mal/web/components"
|
||||
ui "mal/web/components"
|
||||
)
|
||||
|
||||
templ Recommendations(recs []jikan.Anime) {
|
||||
if len(recs) > 0 {
|
||||
<div class="grid grid-cols-2 gap-3 sm:grid-cols-3 md:gap-4 lg:grid-cols-4 xl:grid-cols-5">
|
||||
for _, anime := range recs {
|
||||
@components.AnimeCard(components.AnimeCardProps{
|
||||
@ui.AnimeCard(ui.AnimeCardProps{
|
||||
ID: anime.MalID,
|
||||
Title: anime.DisplayTitle(),
|
||||
ImageURL: anime.ImageURL(),
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
package anime
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"mal/integrations/jikan"
|
||||
"mal/web/components"
|
||||
ui "mal/web/components"
|
||||
)
|
||||
|
||||
templ RelationsList(relations []jikan.RelationEntry) {
|
||||
if len(relations) > 1 {
|
||||
<div class="grid grid-cols-2 gap-3 sm:grid-cols-3 md:gap-4 lg:grid-cols-4 xl:grid-cols-5" id="relations-grid">
|
||||
for _, rel := range relations {
|
||||
@components.AnimeCard(components.AnimeCardProps{
|
||||
@ui.AnimeCard(ui.AnimeCardProps{
|
||||
ID: rel.Anime.MalID,
|
||||
Title: rel.Anime.DisplayTitle(),
|
||||
ImageURL: rel.Anime.ImageURL(),
|
||||
|
||||
Reference in New Issue
Block a user