Fix the router and stub out a number of crates to get compiling

This commit is contained in:
Jonathan Kelley committed 2024-01-13 20:51:37 -08:00
1 parent 4c6e515da4
commit fae0b08e61
226 files changed
+1057 -1482

No files matched your search

+7 -7
View File
@@ -48,14 +48,14 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
}
#[component]
fn RootIndex(cx: Scope) -> Element {
fn RootIndex() -> Element {
render! {
h2 { "Root Index" }
}
}
#[component]
fn Fixed(cx: Scope) -> Element {
fn Fixed() -> Element {
render! {
h2 { "Fixed" }
Outlet::<Route> { }
@@ -63,21 +63,21 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
}
#[component]
fn FixedIndex(cx: Scope) -> Element {
fn FixedIndex() -> Element {
render! {
h3 { "Fixed - Index" }
}
}
#[component]
fn FixedFixed(cx: Scope) -> Element {
fn FixedFixed() -> Element {
render! {
h3 { "Fixed - Fixed"}
}
}
#[component]
fn Parameter(cx: Scope, id: u8) -> Element {
fn Parameter(id: u8) -> Element {
render! {
h2 { "Parameter {id}" }
Outlet::<Route> { }
@@ -85,14 +85,14 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
}
#[component]
fn ParameterIndex(cx: Scope, id: u8) -> Element {
fn ParameterIndex(id: u8) -> Element {
render! {
h3 { "Parameter - Index" }
}
}
#[component]
fn ParameterFixed(cx: Scope, id: u8) -> Element {
fn ParameterFixed(id: u8) -> Element {
render! {
h3 { "Parameter - Fixed" }
}