it almost lives?
This commit is contained in:
1 parent
d637ef187c
commit
5f0dd3af3e
43 files changed
+506
-244
No files matched your search
+1
-1
@@ -46,7 +46,7 @@ fn App(cx: Scope) -> Element {
|
||||
|
||||
h1 { "Dioxus CRM Example" }
|
||||
|
||||
Router {}
|
||||
Router::<Route> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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
@@ -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> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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> {}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user