diff --git a/src/main.rs b/src/main.rs index ea994f2..14064c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,12 +4,12 @@ use yew::prelude::*; use topbar::TopBar; #[function_component] -fn app() -> Html { +fn App() -> Html { html! { } } fn main() { - yew::Renderer::::new().render(); + yew::Renderer::::new().render(); } diff --git a/src/topbar.rs b/src/topbar.rs index 4ed50ec..7ee875d 100644 --- a/src/topbar.rs +++ b/src/topbar.rs @@ -3,12 +3,13 @@ use yew::prelude::*; #[derive(Properties, PartialEq)] pub struct TabProps { pub text: AttrValue, + pub link: AttrValue, } #[function_component] pub fn Tab(props: &TabProps) -> Html { html!{ -
  • +
  • Html { html!{
      - - - - + + + +
      - - + +
    }