From f119d1ac38095230d3f7a7add89212a8be0ffda4 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 17 Jul 2020 11:40:04 +0200 Subject: [PATCH] Rename the Root component to App --- ui/src/components.rs | 6 +++--- ui/src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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::(); }