refactor: improve address display in property details

This commit is contained in:
Prad Nukala
2024-12-08 18:48:04 -05:00
parent 6bb2c2143e
commit 4087fdd79e
33 changed files with 2132 additions and 31 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
package index
import "github.com/onsonr/nebula/ui/layout"
import "github.com/onsonr/sonr/pkg/blocks/layout"
templ NoWebauthnErrorView() {
@layout.Root("Error | Sonr.ID") {
@@ -8,7 +8,7 @@ package index
import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import "github.com/onsonr/nebula/ui/layout"
import "github.com/onsonr/sonr/pkg/blocks/layout"
func NoWebauthnErrorView() templ.Component {
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
+2 -2
View File
@@ -1,8 +1,8 @@
package index
import (
"github.com/onsonr/nebula/ui/layout"
"github.com/onsonr/nebula/ui/text"
"github.com/onsonr/sonr/pkg/blocks/layout"
"github.com/onsonr/sonr/pkg/blocks/text"
)
templ InitialView() {
@@ -9,8 +9,8 @@ import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import (
"github.com/onsonr/nebula/ui/layout"
"github.com/onsonr/nebula/ui/text"
"github.com/onsonr/sonr/pkg/blocks/layout"
"github.com/onsonr/sonr/pkg/blocks/text"
)
func InitialView() templ.Component {
@@ -74,7 +74,7 @@ func InitialView() templ.Component {
}
return templ_7745c5c3_Err
})
templ_7745c5c3_Err = layout.Root("Welcome | Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
templ_7745c5c3_Err = layout.Root("Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -1,10 +1,10 @@
package register
import (
"github.com/onsonr/nebula/ui/details"
"github.com/onsonr/nebula/ui/form"
"github.com/onsonr/nebula/ui/layout"
"github.com/onsonr/nebula/ui/text"
"github.com/onsonr/sonr/pkg/blocks/details"
"github.com/onsonr/sonr/pkg/blocks/form"
"github.com/onsonr/sonr/pkg/blocks/layout"
"github.com/onsonr/sonr/pkg/blocks/text"
)
templ ProfileFormView(turnstileSiteKey string) {
@@ -9,10 +9,10 @@ import "github.com/a-h/templ"
import templruntime "github.com/a-h/templ/runtime"
import (
"github.com/onsonr/nebula/ui/details"
"github.com/onsonr/nebula/ui/form"
"github.com/onsonr/nebula/ui/layout"
"github.com/onsonr/nebula/ui/text"
"github.com/onsonr/sonr/pkg/blocks/details"
"github.com/onsonr/sonr/pkg/blocks/form"
"github.com/onsonr/sonr/pkg/blocks/layout"
"github.com/onsonr/sonr/pkg/blocks/text"
)
func ProfileFormView(turnstileSiteKey string) templ.Component {
@@ -64,7 +64,7 @@ func ProfileFormView(turnstileSiteKey string) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <br>")
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -114,7 +114,7 @@ func ProfileFormView(turnstileSiteKey string) templ.Component {
}
return templ_7745c5c3_Err
})
templ_7745c5c3_Err = layout.Root("Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
templ_7745c5c3_Err = layout.Root("New Profile | Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -171,7 +171,7 @@ func LinkCredentialView(req LinkCredentialRequest) templ.Component {
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" <br>")
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -247,7 +247,7 @@ func LinkCredentialView(req LinkCredentialRequest) templ.Component {
}
return templ_7745c5c3_Err
})
templ_7745c5c3_Err = layout.Root("Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var6), templ_7745c5c3_Buffer)
templ_7745c5c3_Err = layout.Root("Register | Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var6), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -312,7 +312,7 @@ func LoadingVaultView() templ.Component {
}
return templ_7745c5c3_Err
})
templ_7745c5c3_Err = layout.Root("Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var11), templ_7745c5c3_Buffer)
templ_7745c5c3_Err = layout.Root("Loading... | Sonr.ID").Render(templ.WithChildren(ctx, templ_7745c5c3_Var11), templ_7745c5c3_Buffer)
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}