From 303831bda3de19f2b97c1167eab4f8fa424c8cc7 Mon Sep 17 00:00:00 2001 From: Emilia Date: Sun, 21 May 2023 12:48:42 -0400 Subject: [PATCH] Remove dummy components --- src/components/plates/plate_container.css | 1 + src/components/plates/source_plate.rs | 29 ----------------------- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/src/components/plates/plate_container.css b/src/components/plates/plate_container.css index cb41484..2fa0ea5 100644 --- a/src/components/plates/plate_container.css +++ b/src/components/plates/plate_container.css @@ -1,6 +1,7 @@ div.plate_container { display: flex; flex-direction: column; + justify-content: space-around; align-items: flex-end; } diff --git a/src/components/plates/source_plate.rs b/src/components/plates/source_plate.rs index 88a2536..181c513 100644 --- a/src/components/plates/source_plate.rs +++ b/src/components/plates/source_plate.rs @@ -25,8 +25,6 @@ pub fn SourcePlate(cx: Scope) -> Element { div{ class: "source_plate", style { STYLE } - SourcePlateSelectionIndicator {} - SourcePlateSelectionController {} table { draggable: "false", for i in 1..=cx.props.height { @@ -98,33 +96,6 @@ fn in_rect(corner1: Option<(u8, u8)>, corner2: Option<(u8, u8)>, pt: (u8, u8)) - } } -// This is a dummy component for design purposes only -fn SourcePlateSelectionIndicator(cx: Scope) -> Element { - let selection_state = use_shared_state::(cx).unwrap(); - let start_str = match selection_state.read().m_start { - Some(start) => format!("{},{}", start.0, start.1), - None => "None".to_string(), - }; - let end_str = match selection_state.read().m_end { - Some(end) => format!("{},{}", end.0, end.1), - None => "None".to_string(), - }; - - cx.render(rsx! { - p { start_str ", and " end_str } - }) -} - -fn SourcePlateSelectionController(cx: Scope) -> Element { - cx.render(rsx! { - div { - button { - "Select" - } - } - }) -} - #[cfg(test)] mod tests { use super::in_rect;