From 2bad49a2d86a4771d34715eb60a943d999500db5 Mon Sep 17 00:00:00 2001 From: Darp Alakun Date: Mon, 6 Jan 2025 15:08:52 -0500 Subject: [PATCH] refactor: rename hero components and update imports --- ui/hero/base_hero.templ | 8 ++++---- ui/hero/base_hero_templ.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/hero/base_hero.templ b/ui/hero/base_hero.templ index aaa3315..221ee55 100644 --- a/ui/hero/base_hero.templ +++ b/ui/hero/base_hero.templ @@ -1,6 +1,6 @@ -package views +package hero -templ HeroTitle(title string, subtitle string) { +templ Title(title string, subtitle string) {

{ title } @@ -11,7 +11,7 @@ templ HeroTitle(title string, subtitle string) {

} -templ HeroStart() { +templ Start() {
@@ -21,7 +21,7 @@ templ HeroStart() {
} -templ HeroSocials() { +templ Socials() {
diff --git a/ui/hero/base_hero_templ.go b/ui/hero/base_hero_templ.go index 9398a28..5a79257 100644 --- a/ui/hero/base_hero_templ.go +++ b/ui/hero/base_hero_templ.go @@ -1,14 +1,14 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.3.819 -package views +package hero //lint:file-ignore SA4006 This context is only used if a nested component is present. import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -func HeroTitle(title string, subtitle string) templ.Component { +func Title(title string, subtitle string) 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 { @@ -63,7 +63,7 @@ func HeroTitle(title string, subtitle string) templ.Component { }) } -func HeroStart() templ.Component { +func Start() 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 { @@ -92,7 +92,7 @@ func HeroStart() templ.Component { }) } -func HeroSocials() templ.Component { +func Socials() 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 {