This commit is contained in:
2026-05-12 05:08:39 +02:00
parent ee054955b9
commit 4c454de1c2
28 changed files with 2045 additions and 120 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import templruntime "github.com/a-h/templ/runtime"
import (
"fmt"
"prestaproxy/internal/viewmodel"
"git.ma-al.com/goc_marek/ps_shop/internal/viewmodel"
)
func ProductPage(data viewmodel.ProductPageData, cssPath string, jsPath string) templ.Component {
@@ -235,7 +235,7 @@ func ProductPage(data viewmodel.ProductPageData, cssPath string, jsPath string)
}
return nil
})
templ_7745c5c3_Err = Layout(data.Product.Name, cssPath, jsPath).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
templ_7745c5c3_Err = Layout(data.Product.Name, cssPath, jsPath, data.Menu, data.Locale).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}