summaryrefslogtreecommitdiff
path: root/webapp/src/components
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-11-05 18:06:54 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-11-05 18:37:09 -0400
commit50d6ef8ad0f344c9b510c6752119fa5983629d95 (patch)
treefedf2e0569750353a352500ac0ad85034828930d /webapp/src/components
parent2d9d37bd5e4770a05cae780f2113266f3fdd0915 (diff)
Add table view and go to table automatically
Diffstat (limited to 'webapp/src/components')
-rw-r--r--webapp/src/components/table.rs20
1 files changed, 20 insertions, 0 deletions
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! {
+ <>
+ <p>{ format!("This is table {}", props.table.id) }</p>
+ </>
+ }
+}
+
+#[derive(PartialEq, Properties, Clone)]
+pub struct TableProps {
+ pub table: protocol::Table,
+}