mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 01:41:44 +00:00
feat: add new button components and layout improvements
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
package dash
|
||||
|
||||
import (
|
||||
"github.com/onsonr/sonr/pkg/webapp/components/ui"
|
||||
"github.com/onsonr/sonr/pkg/webapp/components/layout"
|
||||
"github.com/onsonr/sonr/pkg/webapp/components/view"
|
||||
"github.com/onsonr/sonr/pkg/webapp/pages/dash/internal"
|
||||
)
|
||||
|
||||
// RedirectModal returns the Modal with a QR code to scan.
|
||||
templ Page() {
|
||||
@ui.FullScreenModal() {
|
||||
@view.FullScreenModal() {
|
||||
<div class="relative text-center">
|
||||
@internal.RegisterHeader()
|
||||
@ui.Separator("Or Reserve Handle")
|
||||
@layout.Separator("Or Reserve Handle")
|
||||
@internal.ReserveHandleForm()
|
||||
</div>
|
||||
@internal.RegisterFooter()
|
||||
|
||||
@@ -9,7 +9,8 @@ import "github.com/a-h/templ"
|
||||
import templruntime "github.com/a-h/templ/runtime"
|
||||
|
||||
import (
|
||||
"github.com/onsonr/sonr/pkg/webapp/components/ui"
|
||||
"github.com/onsonr/sonr/pkg/webapp/components/layout"
|
||||
"github.com/onsonr/sonr/pkg/webapp/components/view"
|
||||
"github.com/onsonr/sonr/pkg/webapp/pages/dash/internal"
|
||||
)
|
||||
|
||||
@@ -55,7 +56,7 @@ func Page() templ.Component {
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
templ_7745c5c3_Err = ui.Separator("Or Reserve Handle").Render(ctx, templ_7745c5c3_Buffer)
|
||||
templ_7745c5c3_Err = layout.Separator("Or Reserve Handle").Render(ctx, templ_7745c5c3_Buffer)
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
@@ -73,7 +74,7 @@ func Page() templ.Component {
|
||||
}
|
||||
return templ_7745c5c3_Err
|
||||
})
|
||||
templ_7745c5c3_Err = ui.FullScreenModal().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
|
||||
templ_7745c5c3_Err = view.FullScreenModal().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)
|
||||
if templ_7745c5c3_Err != nil {
|
||||
return templ_7745c5c3_Err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user