Skip to content

Commit 910c17a

Browse files
committed
rename button
1 parent 8858572 commit 910c17a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

frameworks/keyed/dioxus/src/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ fn build_data(count: usize) -> Vec<RowData> {
9494
}
9595

9696
#[component]
97-
fn ActionButton(name: String, id: String, onclick: EventHandler) -> Element {
97+
fn Button(name: String, id: String, onclick: EventHandler) -> Element {
9898
rsx! {
9999
div {
100100
class: "col-sm-6 smallpad",
@@ -156,22 +156,22 @@ fn app() -> Element {
156156
div { class: "col-md-6", h1 { "Dioxus" } }
157157
div { class: "col-md-6",
158158
div { class: "row",
159-
ActionButton { name: "Create 1,000 rows", id: "run",
159+
Button { name: "Create 1,000 rows", id: "run",
160160
onclick: move |_| run(()),
161161
}
162-
ActionButton { name: "Create 10,000 rows", id: "runlots",
162+
Button { name: "Create 10,000 rows", id: "runlots",
163163
onclick: move |_| run_lots(()),
164164
}
165-
ActionButton { name: "Append 1,000 rows", id: "add",
165+
Button { name: "Append 1,000 rows", id: "add",
166166
onclick: move|_| add(()),
167167
}
168-
ActionButton { name: "Update every 10th row", id: "update",
168+
Button { name: "Update every 10th row", id: "update",
169169
onclick: move |_| update(()),
170170
}
171-
ActionButton { name: "Clear", id: "clear",
171+
Button { name: "Clear", id: "clear",
172172
onclick: move |_| clear(()),
173173
}
174-
ActionButton { name: "Swap rows", id: "swaprows",
174+
Button { name: "Swap rows", id: "swaprows",
175175
onclick: move|_| swap_rows(()),
176176
}
177177
}

0 commit comments

Comments
 (0)