mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
refactor: migrate layout imports to common styles package
This commit is contained in:
parent
8ceb89053f
commit
0ff4299061
@ -1,6 +1,7 @@
|
|||||||
package register
|
package register
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/onsonr/sonr/pkg/common/styles/forms"
|
||||||
"github.com/onsonr/sonr/pkg/common/styles/layout"
|
"github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
"github.com/onsonr/sonr/pkg/common/styles/text"
|
"github.com/onsonr/sonr/pkg/common/styles/text"
|
||||||
)
|
)
|
||||||
|
@ -9,6 +9,7 @@ import "github.com/a-h/templ"
|
|||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/onsonr/sonr/pkg/common/styles/forms"
|
||||||
"github.com/onsonr/sonr/pkg/common/styles/layout"
|
"github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
"github.com/onsonr/sonr/pkg/common/styles/text"
|
"github.com/onsonr/sonr/pkg/common/styles/text"
|
||||||
)
|
)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package dash
|
package dash
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
templ ProfileView() {
|
templ ProfileView() {
|
||||||
@layout.Root("Sonr.ID") {
|
@layout.Root("Sonr.ID") {
|
||||||
|
@ -8,7 +8,7 @@ package dash
|
|||||||
import "github.com/a-h/templ"
|
import "github.com/a-h/templ"
|
||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
func ProfileView() templ.Component {
|
func ProfileView() templ.Component {
|
||||||
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package index
|
package index
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
templ NoWebauthnErrorView() {
|
templ NoWebauthnErrorView() {
|
||||||
@layout.Root("Sonr.ID") {
|
@layout.Root("Sonr.ID") {
|
||||||
|
@ -8,7 +8,7 @@ package index
|
|||||||
import "github.com/a-h/templ"
|
import "github.com/a-h/templ"
|
||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
func NoWebauthnErrorView() templ.Component {
|
func NoWebauthnErrorView() templ.Component {
|
||||||
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package index
|
package index
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
templ InitialView() {
|
templ InitialView() {
|
||||||
@layout.Root("Sonr.ID") {
|
@layout.Root("Sonr.ID") {
|
||||||
|
@ -8,7 +8,7 @@ package index
|
|||||||
import "github.com/a-h/templ"
|
import "github.com/a-h/templ"
|
||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
func InitialView() templ.Component {
|
func InitialView() templ.Component {
|
||||||
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package wallet
|
package wallet
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
templ DepositFundsView() {
|
templ DepositFundsView() {
|
||||||
@layout.Root("Sonr.ID") {
|
@layout.Root("Sonr.ID") {
|
||||||
|
@ -8,7 +8,7 @@ package wallet
|
|||||||
import "github.com/a-h/templ"
|
import "github.com/a-h/templ"
|
||||||
import templruntime "github.com/a-h/templ/runtime"
|
import templruntime "github.com/a-h/templ/runtime"
|
||||||
|
|
||||||
import "github.com/onsonr/sonr/pkg/blocks/layout"
|
import "github.com/onsonr/sonr/pkg/common/styles/layout"
|
||||||
|
|
||||||
func DepositFundsView() templ.Component {
|
func DepositFundsView() templ.Component {
|
||||||
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user