fix: break import cycle by moving Layout to shared package and fix import paths
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package templates
|
||||
|
||||
import "mal/web/shared/layout"
|
||||
|
||||
templ Login(formError string, username string) {
|
||||
@Layout("Login", false) {
|
||||
@layout.Layout("Login", false) {
|
||||
<div class="w-full max-w-xl">
|
||||
<div class="mx-auto w-full bg-(--panel) p-6">
|
||||
<h2 class="m-0 text-2xl">Sign in</h2>
|
||||
|
||||
Reference in New Issue
Block a user