diff --git a/app-proto/sketch-outline/src/editor.rs b/app-proto/sketch-outline/src/app.rs similarity index 95% rename from app-proto/sketch-outline/src/editor.rs rename to app-proto/sketch-outline/src/app.rs index 07c0084..35503f0 100644 --- a/app-proto/sketch-outline/src/editor.rs +++ b/app-proto/sketch-outline/src/app.rs @@ -9,13 +9,13 @@ struct Element { rep: DVector, } -struct EditorState { +struct AppState { elements: Signal> } #[component] -pub fn Editor() -> View { - let state = EditorState { +pub fn App() -> View { + let state = AppState { elements: create_signal(vec![ Element { id: String::from("central"), diff --git a/app-proto/sketch-outline/src/main.rs b/app-proto/sketch-outline/src/main.rs index 8b7ce30..e46fff3 100644 --- a/app-proto/sketch-outline/src/main.rs +++ b/app-proto/sketch-outline/src/main.rs @@ -1,13 +1,13 @@ use sycamore::prelude::*; -mod editor; +mod app; -use editor::Editor; +use app::App; fn main() { sycamore::render(|| { view! { - Editor {} + App {} } }); } \ No newline at end of file