From 1ea82268bdf1cb6712a5c02a72e7a3cff113acbb Mon Sep 17 00:00:00 2001 From: Ruidy Date: Fri, 12 Apr 2024 11:22:55 +0200 Subject: [PATCH] move layouts to own folder --- internal/view/booking_by_id.templ | 3 ++- internal/view/booking_by_id_templ.go | 17 +++++++++-------- internal/view/bookings_list.templ | 6 +++++- internal/view/bookings_list_templ.go | 18 +++++++++++------- internal/view/bookings_new.templ | 6 +++++- internal/view/bookings_new_templ.go | 8 ++++++-- internal/view/index.templ | 7 +++++-- internal/view/index_templ.go | 7 +++++-- internal/view/{ => layout}/base.templ | 2 +- internal/view/{ => layout}/base_templ.go | 2 +- internal/view/{ => layout}/public.templ | 2 +- internal/view/{ => layout}/public_templ.go | 12 ++++++------ internal/view/reports.templ | 3 ++- internal/view/reports_templ.go | 5 +++-- 14 files changed, 62 insertions(+), 36 deletions(-) rename internal/view/{ => layout}/base.templ (98%) rename internal/view/{ => layout}/base_templ.go (99%) rename internal/view/{ => layout}/public.templ (99%) rename internal/view/{ => layout}/public_templ.go (96%) diff --git a/internal/view/booking_by_id.templ b/internal/view/booking_by_id.templ index 04dd78e..64ba3bd 100644 --- a/internal/view/booking_by_id.templ +++ b/internal/view/booking_by_id.templ @@ -2,6 +2,7 @@ package view import ( "fmt" + "github.com/rjNemo/rentease/internal/view/layout" ) type BookingViewModel struct { @@ -35,7 +36,7 @@ type ItemViewModel struct { } templ BookingById(booking *BookingViewModel) { - @BaseLayout() { + @layout.BaseLayout() {

{ booking.Name }

diff --git a/internal/view/booking_by_id_templ.go b/internal/view/booking_by_id_templ.go index a9e1724..d89fd76 100644 --- a/internal/view/booking_by_id_templ.go +++ b/internal/view/booking_by_id_templ.go @@ -12,6 +12,7 @@ import "bytes" import ( "fmt" + "github.com/rjNemo/rentease/internal/view/layout" ) type BookingViewModel struct { @@ -70,7 +71,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(booking.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 40, Col: 22} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 41, Col: 22} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -83,7 +84,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(booking.Id) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 41, Col: 20} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 42, Col: 20} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -169,7 +170,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(booking.Platform) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 86, Col: 70} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 87, Col: 70} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -195,7 +196,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(platform) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 88, Col: 46} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 89, Col: 46} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -231,7 +232,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(booking.Total) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 127, Col: 37} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 128, Col: 37} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { @@ -265,7 +266,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(item) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 141, Col: 37} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 142, Col: 37} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { @@ -296,7 +297,7 @@ func BookingById(booking *BookingViewModel) templ.Component { var templ_7745c5c3_Var10 string templ_7745c5c3_Var10, templ_7745c5c3_Err = templ.JoinStringErrs(paymentMethod) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 157, Col: 55} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/booking_by_id.templ`, Line: 158, Col: 55} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var10)) if templ_7745c5c3_Err != nil { @@ -316,7 +317,7 @@ func BookingById(booking *BookingViewModel) templ.Component { } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = layout.BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/view/bookings_list.templ b/internal/view/bookings_list.templ index c2bdef4..94449f4 100644 --- a/internal/view/bookings_list.templ +++ b/internal/view/bookings_list.templ @@ -1,5 +1,9 @@ package view +import ( + "github.com/rjNemo/rentease/internal/view/layout" +) + type ListBookingsViewModel struct { Id string Url templ.SafeURL @@ -11,7 +15,7 @@ type ListBookingsViewModel struct { } templ ListBookings(bookings []*ListBookingsViewModel) { - @BaseLayout() { + @layout.BaseLayout() {

Bookings

Overview of the activity

diff --git a/internal/view/bookings_list_templ.go b/internal/view/bookings_list_templ.go index f107d65..853a0e6 100644 --- a/internal/view/bookings_list_templ.go +++ b/internal/view/bookings_list_templ.go @@ -10,6 +10,10 @@ import "context" import "io" import "bytes" +import ( + "github.com/rjNemo/rentease/internal/view/layout" +) + type ListBookingsViewModel struct { Id string Url templ.SafeURL @@ -60,7 +64,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(b.Id) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 35, Col: 15} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 39, Col: 15} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -73,7 +77,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(b.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 38, Col: 19} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 42, Col: 19} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -86,7 +90,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { var templ_7745c5c3_Var6 string templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(b.Total) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 39, Col: 20} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 43, Col: 20} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) if templ_7745c5c3_Err != nil { @@ -99,7 +103,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(b.From) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 40, Col: 19} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 44, Col: 19} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -112,7 +116,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { var templ_7745c5c3_Var8 string templ_7745c5c3_Var8, templ_7745c5c3_Err = templ.JoinStringErrs(b.To) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 41, Col: 17} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 45, Col: 17} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var8)) if templ_7745c5c3_Err != nil { @@ -125,7 +129,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(b.Platform) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 42, Col: 23} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_list.templ`, Line: 46, Col: 23} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { @@ -145,7 +149,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = layout.BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/view/bookings_new.templ b/internal/view/bookings_new.templ index e2007ae..59272e1 100644 --- a/internal/view/bookings_new.templ +++ b/internal/view/bookings_new.templ @@ -1,7 +1,11 @@ package view +import ( + "github.com/rjNemo/rentease/internal/view/layout" +) + templ NewBooking(platforms []string) { - @BaseLayout() { + @layout.BaseLayout() {

New Booking

Create a new booking

diff --git a/internal/view/bookings_new_templ.go b/internal/view/bookings_new_templ.go index 3766816..5a079ed 100644 --- a/internal/view/bookings_new_templ.go +++ b/internal/view/bookings_new_templ.go @@ -10,6 +10,10 @@ import "context" import "io" import "bytes" +import ( + "github.com/rjNemo/rentease/internal/view/layout" +) + func NewBooking(platforms []string) templ.Component { return templ.ComponentFunc(func(ctx context.Context, templ_7745c5c3_W io.Writer) (templ_7745c5c3_Err error) { templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templ_7745c5c3_W.(*bytes.Buffer) @@ -49,7 +53,7 @@ func NewBooking(platforms []string) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(platform) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_new.templ`, Line: 44, Col: 44} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/bookings_new.templ`, Line: 48, Col: 44} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -69,7 +73,7 @@ func NewBooking(platforms []string) templ.Component { } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = layout.BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/view/index.templ b/internal/view/index.templ index 8cf1c0e..8c8d153 100644 --- a/internal/view/index.templ +++ b/internal/view/index.templ @@ -1,6 +1,9 @@ package view -import "github.com/rjNemo/rentease/config" +import ( + "github.com/rjNemo/rentease/config" + "github.com/rjNemo/rentease/internal/view/layout" +) func makeItems() []string { host := config.NewHost() @@ -16,7 +19,7 @@ func makeItems() []string { var items = makeItems() templ Index() { - @PublicLayout() { + @layout.PublicLayout() {

Reserver votre sejour des maintenant

diff --git a/internal/view/index_templ.go b/internal/view/index_templ.go index 87b77aa..63c6e80 100644 --- a/internal/view/index_templ.go +++ b/internal/view/index_templ.go @@ -10,7 +10,10 @@ import "context" import "io" import "bytes" -import "github.com/rjNemo/rentease/config" +import ( + "github.com/rjNemo/rentease/config" + "github.com/rjNemo/rentease/internal/view/layout" +) func makeItems() []string { host := config.NewHost() @@ -69,7 +72,7 @@ func Index() templ.Component { } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = PublicLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = layout.PublicLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/view/base.templ b/internal/view/layout/base.templ similarity index 98% rename from internal/view/base.templ rename to internal/view/layout/base.templ index 8e4992b..abdf492 100644 --- a/internal/view/base.templ +++ b/internal/view/layout/base.templ @@ -1,4 +1,4 @@ -package view +package layout templ BaseLayout() { diff --git a/internal/view/base_templ.go b/internal/view/layout/base_templ.go similarity index 99% rename from internal/view/base_templ.go rename to internal/view/layout/base_templ.go index d4a807b..436b7e4 100644 --- a/internal/view/base_templ.go +++ b/internal/view/layout/base_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.543 -package view +package layout //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/internal/view/public.templ b/internal/view/layout/public.templ similarity index 99% rename from internal/view/public.templ rename to internal/view/layout/public.templ index 62d2d03..3acb3f2 100644 --- a/internal/view/public.templ +++ b/internal/view/layout/public.templ @@ -1,4 +1,4 @@ -package view +package layout import ( "fmt" diff --git a/internal/view/public_templ.go b/internal/view/layout/public_templ.go similarity index 96% rename from internal/view/public_templ.go rename to internal/view/layout/public_templ.go index 1f91f98..4f917b9 100644 --- a/internal/view/public_templ.go +++ b/internal/view/layout/public_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.543 -package view +package layout //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -66,7 +66,7 @@ func PublicLayout() templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(hvm.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/public.templ`, Line: 42, Col: 20} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/layout/public.templ`, Line: 42, Col: 20} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -93,7 +93,7 @@ func PublicLayout() templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(l.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/public.templ`, Line: 63, Col: 39} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/layout/public.templ`, Line: 63, Col: 39} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -119,7 +119,7 @@ func PublicLayout() templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(hvm.Name) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/public.templ`, Line: 75, Col: 21} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/layout/public.templ`, Line: 75, Col: 21} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -141,7 +141,7 @@ func PublicLayout() templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(hvm.PhoneNumber) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/public.templ`, Line: 75, Col: 93} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/layout/public.templ`, Line: 75, Col: 93} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -163,7 +163,7 @@ func PublicLayout() templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(hvm.Email) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/public.templ`, Line: 75, Col: 148} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/layout/public.templ`, Line: 75, Col: 148} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { diff --git a/internal/view/reports.templ b/internal/view/reports.templ index debfb1f..0fb72e5 100644 --- a/internal/view/reports.templ +++ b/internal/view/reports.templ @@ -2,10 +2,11 @@ package view import ( "strconv" + "github.com/rjNemo/rentease/internal/view/layout" ) templ Reports(months []string, m int, year string) { - @BaseLayout() { + @layout.BaseLayout() {

Reports

diff --git a/internal/view/reports_templ.go b/internal/view/reports_templ.go index e2192bb..18d7514 100644 --- a/internal/view/reports_templ.go +++ b/internal/view/reports_templ.go @@ -11,6 +11,7 @@ import "io" import "bytes" import ( + "github.com/rjNemo/rentease/internal/view/layout" "strconv" ) @@ -71,7 +72,7 @@ func Reports(months []string, m int, year string) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(month) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/reports.templ`, Line: 39, Col: 16} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/view/reports.templ`, Line: 40, Col: 16} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -91,7 +92,7 @@ func Reports(months []string, m int, year string) templ.Component { } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = layout.BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }