fix more examples

This commit is contained in:
Evan Almloff committed 2024-01-16 12:28:21 -06:00
1 parent db35a9b48c
commit 407a82588a
59 files changed
+166 -195

No files matched your search

+3 -3
View File
@@ -60,7 +60,7 @@ pub struct Client {
fn ClientList() -> Element {
let mut clients = use_context::<Clients>();
rsx! {
render! {
h2 { "List of Clients" }
Link { to: Route::ClientAdd {}, class: "pure-button pure-button-primary", "Add Client" }
Link { to: Route::Settings {}, class: "pure-button", "Settings" }
@@ -88,7 +88,7 @@ fn ClientAdd() -> Element {
dioxus_router::router().push(Route::ClientList {});
};
rsx! {
render! {
h2 { "Add new Client" }
form { class: "pure-form pure-form-aligned", onsubmit: submit_client,
@@ -138,7 +138,7 @@ fn ClientAdd() -> Element {
#[component]
fn Settings() -> Element {
rsx! {
render! {
h2 { "Settings" }
button {