diff --git a/web/src/lib.rs b/web/src/lib.rs index 14e36594..f06dccdc 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -89,6 +89,29 @@ pub fn LoginBox( } } +#[component] +pub fn TimelineNavigation() -> impl IntoView { + let auth = use_context::>>().expect("missing auth context"); + view! { + + + + + + + } +} + #[component] pub fn PostBox() -> impl IntoView { let auth = use_context::>>().expect("missing auth context"); diff --git a/web/src/main.rs b/web/src/main.rs index 11d4da62..3ee79a2f 100644 --- a/web/src/main.rs +++ b/web/src/main.rs @@ -3,7 +3,8 @@ use leptos_router::*; use leptos_use::{use_cookie, utils::JsonCodec}; use upub_web::{ - URL_BASE, context::Timeline, About, Auth, LoginBox, MaybeToken, ObjectPage, PostBox, TimelineFeed, UserPage + URL_BASE, context::Timeline, About, Auth, LoginBox, MaybeToken, ObjectPage, PostBox, + TimelineFeed, TimelineNavigation, UserPage }; fn main() { @@ -63,22 +64,7 @@ fn main() { rx=cookie />
- - - - - - +