diff --git a/src/components/plates/destination_plate.rs b/src/components/plates/destination_plate.rs index f168d43..e7082a7 100644 --- a/src/components/plates/destination_plate.rs +++ b/src/components/plates/destination_plate.rs @@ -29,23 +29,6 @@ pub fn DestinationPlate(props: &DestinationPlateProps) -> Html { } - /* - cx.render(rsx! { - div { - class: "dest_plate", - table { - for i in 1..=cx.props.height { - tr { - draggable: "false", - for j in 1..=cx.props.width { - DestPlateCell {i: i, j: j} - } - } - }, - } - } - }) - */ } #[derive(Properties, PartialEq)] @@ -57,7 +40,7 @@ pub struct DestPlateCellProps { #[function_component] fn DestPlateCell(props: &DestPlateCellProps) -> Html { - let color_string = match &props.color { + let _color_string = match &props.color { Some(c) => c.clone(), None => "None".to_string(), }; @@ -67,16 +50,4 @@ fn DestPlateCell(props: &DestPlateCellProps) -> Html {
} - /* - cx.render(rsx! { - td { - class: "plate_cell", - draggable: "false", - style: "background: {color_string}", - div { - class: "plate_cell_inner" - } - } - }) - */ }