🚚 Renombra add_component por add_child

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

View file

@ -34,7 +34,7 @@ impl Display for ErrorPage {
if let Ok(page) = error_page
.with_title(L10n::n("Error FORBIDDEN"))
.with_layout("error")
.add_component(Html::with(move |_| error403.clone()))
.add_child(Html::with(move |_| error403.clone()))
.render()
{
write!(f, "{}", page.into_string())
@ -49,7 +49,7 @@ impl Display for ErrorPage {
if let Ok(page) = error_page
.with_title(L10n::n("Error RESOURCE NOT FOUND"))
.with_layout("error")
.add_component(Html::with(move |_| error404.clone()))
.add_child(Html::with(move |_| error404.clone()))
.render()
{
write!(f, "{}", page.into_string())