diff --git a/gh-pages/src/app.rs b/gh-pages/src/app.rs index 1a130da..fe249f7 100644 --- a/gh-pages/src/app.rs +++ b/gh-pages/src/app.rs @@ -7,58 +7,30 @@ pub fn App() -> impl IntoView { view! { - - } /> - - } > - - } /> - - } /> - + + + + } /> - } /> - - } /> - - } /> - - } /> - - } /> - - } /> - + + + + + } /> - - } /> - - } /> + + - - } /> - - } /> - - } /> + + + } diff --git a/gh-pages/src/main.rs b/gh-pages/src/main.rs index a082bc4..e533a1a 100644 --- a/gh-pages/src/main.rs +++ b/gh-pages/src/main.rs @@ -6,5 +6,5 @@ use app::*; use leptos::*; fn main() { - mount_to_body(|| view! { }) + mount_to_body(App) } diff --git a/gh-pages/src/pages/home.rs b/gh-pages/src/pages/home.rs index 02db9ef..3761036 100644 --- a/gh-pages/src/pages/home.rs +++ b/gh-pages/src/pages/home.rs @@ -7,9 +7,8 @@ use melt_ui::*; pub fn Home() -> impl IntoView { let query_map = use_query_map().get_untracked(); if let Some(path) = query_map.get("path") { - let path = store_value(path.clone()); let navigate = use_navigate(); - navigate(&path.get_value(), Default::default()); + navigate(path, Default::default()); } view! {