Skip to content

Commit a7db229

Browse files
author
Piotr Gulbinowicz
committed
add hiding login container when registering
1 parent 8b51506 commit a7db229

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pwa/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (b *buttonShowRegister) Render() app.UI {
5252
}
5353
func (b *buttonShowRegister) onClick(ctx app.Context, e app.Event) {
5454
app.Window().GetElementByID("register-container").Set("className", registerDivCss)
55+
app.Window().GetElementByID("login-container").Set("className", inviCss)
5556
}
5657

5758
type registerContainer struct {
@@ -161,7 +162,8 @@ func (l *loginContainer) Render() app.UI {
161162
&buttonShowRegister{},
162163
),
163164
),
164-
).Class("p-4 text-center text-xl shadow-lg bg-white rounded-lg"),
165+
).Class("p-4 text-center text-xl shadow-lg bg-white rounded-lg",
166+
).ID("login-container"),
165167
&registerContainer{},
166168
app.Div().Body(&ErrorContainer{})).Class(
167169
centeringDivCss)

0 commit comments

Comments
 (0)