From 2b970ea49a5d46caaf0a689395140cfa53c41da7 Mon Sep 17 00:00:00 2001 From: maddalax Date: Wed, 25 Sep 2024 11:59:09 -0500 Subject: [PATCH] remove add task test --- examples/todo-list/pages/index.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/examples/todo-list/pages/index.go b/examples/todo-list/pages/index.go index 81d3622..65b5cac 100644 --- a/examples/todo-list/pages/index.go +++ b/examples/todo-list/pages/index.go @@ -1,7 +1,6 @@ package pages import ( - "github.com/maddalax/htmgo/framework/js" "todolist/pages/base" "todolist/partials/task" @@ -20,12 +19,6 @@ func TaskListPage(ctx *h.RequestContext) *h.Page { h.Div( h.Class("flex flex-col gap-6 p-4 items-center max-w-xl mx-auto pb-12"), title, - h.Button( - h.Text("Add Task"), - h.OnClick( - js.InjectScript("https://htmgo.dev"), - ), - ), task.Card(ctx), h.Children( h.Div(h.Text("Double-click to edit a todo")),