Application prototype #14

Merged
glen merged 101 commits from app-proto into main 2024-10-21 23:38:28 +00:00
Showing only changes of commit 2444649dd1 - Show all commits

View File

@ -1,5 +1,5 @@
use sycamore::prelude::*;
use web_sys::{MouseEvent, console, wasm_bindgen::JsValue};
use web_sys::{console, wasm_bindgen::JsValue};
use crate::AppState;
use crate::Constraint;
@ -11,7 +11,7 @@ pub fn AddRemove() -> View {
view! {
div(id="add-remove") {
button(
on:click=move |event: MouseEvent| {
on:click=move |_| {
console::log_1(&JsValue::from("constraints:"));
state.assembly.constraints.with(|csts| {
for (_, cst) in csts.into_iter() {
@ -29,7 +29,7 @@ pub fn AddRemove() -> View {
disabled={
state.selection.with(|sel| sel.len() != 2)
},
on:click=move |event: MouseEvent| {
on:click=move |_| {
let args = state.selection.with(
|sel| {
let arg_vec: Vec<_> = sel.into_iter().collect();