diff --git a/ui/src/components.rs b/ui/src/components.rs index f2b0b4c..9dcdb79 100644 --- a/ui/src/components.rs +++ b/ui/src/components.rs @@ -1,13 +1,13 @@ use yew::prelude::*; -pub struct Root; +pub struct App; -impl Component for Root { +impl Component for App { type Message = (); type Properties = (); fn create(_props: Self::Properties, _complink: ComponentLink) -> Self { - Root + App } fn update(&mut self, _msg: Self::Message) -> ShouldRender { diff --git a/ui/src/lib.rs b/ui/src/lib.rs index e0bcd3a..14c2ca3 100644 --- a/ui/src/lib.rs +++ b/ui/src/lib.rs @@ -6,5 +6,5 @@ use wasm_bindgen::prelude::*; #[wasm_bindgen(start)] pub fn run_app() { - yew::start_app::(); + yew::start_app::(); }