♻️ Reorganización de macros declarativas

This commit is contained in:
Manuel Cillero 2023-05-14 20:21:25 +02:00
parent 99b08fa201
commit 19af38cb06
13 changed files with 80 additions and 70 deletions

View file

@ -21,10 +21,11 @@ impl ModuleTrait for Admin {
Some(l("module_description"))
}
#[rustfmt::skip]
fn dependencies(&self) -> Vec<ModuleStaticRef> {
vec![
&pagetop_minimal::Minimal,
&pagetop_megamenu::MegaMenu
&pagetop_megamenu::MegaMenu,
]
}

View file

@ -1,7 +1,7 @@
use super::l;
use pagetop::prelude::*;
use pagetop_minimal::component::*;
use pagetop_megamenu::component::{MegaMenu, MegaMenuItem};
use pagetop_minimal::component::*;
pub async fn summary(request: server::HttpRequest) -> ResultPage<Markup, FatalError> {
let top_menu = MegaMenu::new()