it almost lives?

This commit is contained in:
Evan Almloff committed 2023-07-25 18:14:48 -07:00
1 parent d637ef187c
commit 5f0dd3af3e
43 files changed
+506 -244

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ fn App(cx: Scope) -> Element {
h1 { "Dioxus CRM Example" }
Router {}
Router::<Route> {}
}
}
+2 -2
View File
@@ -18,7 +18,7 @@ fn main() {
fn app(cx: Scope) -> Element {
render! {
Router {}
Router::<Route> {}
}
}
@@ -40,7 +40,7 @@ enum Route {
fn Footer(cx: Scope) -> Element {
render! {
div {
Outlet { }
Outlet::<Route> { }
p {
"----"
+2 -2
View File
@@ -23,7 +23,7 @@ fn app(cx: Scope) -> Element {
}
}
div {
Router {}
Router::<Route> {}
}
))
}
@@ -46,7 +46,7 @@ fn Header(cx: Scope) -> Element {
li { Link { to: Route::Home {}, "home" } }
li { Link { to: Route::Settings {}, "settings" } }
}
Outlet {}
Outlet::<Route> {}
}
}
+3 -3
View File
@@ -39,7 +39,7 @@ enum Route {
fn App(cx: Scope) -> Element {
render! {
Router {}
Router::<Route> {}
}
}
@@ -52,7 +52,7 @@ fn NavBar(cx: Scope) -> Element {
li { Link { to: Route::BlogList {}, "Blog" } }
}
}
Outlet {}
Outlet::<Route> {}
}
}
@@ -67,7 +67,7 @@ fn Home(cx: Scope) -> Element {
fn Blog(cx: Scope) -> Element {
render! {
h1 { "Blog" }
Outlet {}
Outlet::<Route> {}
}
}
+2 -2
View File
@@ -14,7 +14,7 @@ fn main() {
fn app(cx: Scope) -> Element {
render! {
Router {}
Router::<Route> {}
}
}
@@ -47,7 +47,7 @@ fn NavBar(cx: Scope) -> Element {
li { Link { to: Route::BlogPost { post: "bill".into() }, "bills' blog" } }
li { Link { to: Route::BlogPost { post: "james".into() }, "james amazing' blog" } }
}
Outlet {}
Outlet::<Route> {}
}
}