Make new enum router less breaking

This commit is contained in:
Evan Almloff committed 2023-07-24 11:57:56 -07:00
1 parent b51ffa0590
commit 61dc549ba1
16 files changed
+74 -63

No files matched your search

+4 -4
View File
@@ -48,8 +48,8 @@ fn NavBar(cx: Scope) -> Element {
render! {
nav {
ul {
li { Link { target: Route::Home {}, "Home" } }
li { Link { target: Route::BlogList {}, "Blog" } }
li { Link { to: Route::Home {}, "Home" } }
li { Link { to: Route::BlogList {}, "Blog" } }
}
}
Outlet {}
@@ -78,13 +78,13 @@ fn BlogList(cx: Scope) -> Element {
ul {
li {
Link {
target: Route::BlogPost { name: "Blog post 1".into() },
to: Route::BlogPost { name: "Blog post 1".into() },
"Read the first blog post"
}
}
li {
Link {
target: Route::BlogPost { name: "Blog post 2".into() },
to: Route::BlogPost { name: "Blog post 2".into() },
"Read the second blog post"
}
}