change return type to obj

This commit is contained in:
Robin Olsen
2026-02-03 14:25:53 +01:00
parent 8c9a0035e7
commit 6dc0237479
3 changed files with 24 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ templ IssueForm(props IssueFormProps) {
}
type IssueTableProps struct {
Issues []*models.Issue
Issues []models.Issue
}
templ IssueTable(props IssueTableProps) {
@@ -96,7 +96,7 @@ templ IssueTable(props IssueTableProps) {
)
}
templ IssueRows(issues []*models.Issue) {
templ IssueRows(issues []models.Issue) {
for _, issue := range issues {
<tr>
<td class="px-4 py-2 border">{ issue.ID }</td>

View File

@@ -155,7 +155,7 @@ func IssueForm(props IssueFormProps) templ.Component {
}
type IssueTableProps struct {
Issues []*models.Issue
Issues []models.Issue
}
func IssueTable(props IssueTableProps) templ.Component {
@@ -199,7 +199,7 @@ func IssueTable(props IssueTableProps) templ.Component {
})
}
func IssueRows(issues []*models.Issue) templ.Component {
func IssueRows(issues []models.Issue) templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context
if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil {