diff --git a/crates/polyphony-wasm/src/app/login.rs b/crates/polyphony-wasm/src/app/login.rs new file mode 100644 index 0000000..83bec94 --- /dev/null +++ b/crates/polyphony-wasm/src/app/login.rs @@ -0,0 +1,6 @@ +use leptos::*; + +#[component] +pub fn Login() -> impl IntoView { + todo!() +} diff --git a/crates/polyphony-wasm/src/app/mod.rs b/crates/polyphony-wasm/src/app/mod.rs index 87ebaa7..3093e74 100644 --- a/crates/polyphony-wasm/src/app/mod.rs +++ b/crates/polyphony-wasm/src/app/mod.rs @@ -1,3 +1,5 @@ +pub mod login; pub mod register; +pub use login::*; pub use register::*; diff --git a/crates/polyphony-wasm/src/app/register.rs b/crates/polyphony-wasm/src/app/register.rs index 44e3178..d335fd4 100644 --- a/crates/polyphony-wasm/src/app/register.rs +++ b/crates/polyphony-wasm/src/app/register.rs @@ -19,6 +19,7 @@ pub fn Register() -> impl IntoView { async move { register(&input).await } }); debug!("Rendering Register component"); + // TODO: Set an error if registering fails view! {