From 50d6ef8ad0f344c9b510c6752119fa5983629d95 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 5 Nov 2022 18:06:54 -0400 Subject: Add table view and go to table automatically --- webapp/src/components/table.rs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 webapp/src/components/table.rs (limited to 'webapp/src/components') diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs new file mode 100644 index 0000000..8e8b5c8 --- /dev/null +++ b/webapp/src/components/table.rs @@ -0,0 +1,20 @@ +use yew::prelude::*; + +#[function_component(Table)] +pub fn table(props: &TableProps) -> Html { + // let leave_table = { + // Callback::from(move |_| { + // }); + // }; + + html! { + <> +

{ format!("This is table {}", props.table.id) }

+ + } +} + +#[derive(PartialEq, Properties, Clone)] +pub struct TableProps { + pub table: protocol::Table, +} -- cgit v1.2.3