🚚 Simplifica Child[Component] y Typed[Component]
This commit is contained in:
parent
db13a6ab8b
commit
ee84c219cc
12 changed files with 57 additions and 59 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue