refactor: migrate layout imports to common styles package

This commit is contained in:
Prad Nukala 2024-12-09 18:30:02 -05:00
parent 8ceb89053f
commit 0ff4299061
10 changed files with 10 additions and 8 deletions

View File

@ -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"
) )

View File

@ -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"
) )

View File

@ -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") {

View File

@ -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) {

View File

@ -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") {

View File

@ -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) {

View File

@ -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") {

View File

@ -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) {

View File

@ -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") {

View File

@ -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) {