🚚 Simplifica Child[Component] y Typed[Component]

This commit is contained in:
Manuel Cillero 2025-01-05 09:32:49 +01:00
parent db13a6ab8b
commit ee84c219cc
12 changed files with 57 additions and 59 deletions

View file

@ -27,7 +27,7 @@ impl PackageTrait for PageTopWebSite {
}
fn init(&self) {
let nav = Navbar::new().with_nav(TypedOp::Add(TypedComponent::with(
let nav = Navbar::new().with_nav(TypedOp::Add(Typed::with(
navbar::Nav::new()
.with_item(navbar::Item::link(
L10n::t("menu_home", &LOCALES_WEBSITE),
@ -53,7 +53,7 @@ impl PackageTrait for PageTopWebSite {
)),
)));
InRegion::Content.add(ChildComponent::with(nav));
InRegion::Content.add(Child::with(nav));
/*
let branding = Branding::new()