🚚 Renombra add_component por add_child

This commit is contained in:
Manuel Cillero 2025-10-18 21:33:29 +02:00
parent 180cb9c2f6
commit 769eb384e4
12 changed files with 31 additions and 32 deletions

View file

@ -67,10 +67,10 @@ use pagetop::prelude::*;
async fn homepage(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(request)
.with_theme("Aliner")
.add_component(
.add_child(
Block::new()
.with_title(L10n::l("sample_title"))
.add_component(Html::with(|cx| html! {
.add_child(Html::with(|cx| html! {
p { (L10n::l("sample_content").using(cx)) }
})),
)