diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-11-15 15:14:48 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-11-15 15:15:06 -0500 |
commit | 87ede1e2b367a997440626ad9f583600d7cc42fc (patch) | |
tree | a3fd0008714e6d524c2e3b967734a0cfb6cf6cbd /webapp/src/components/table.rs | |
parent | 1f623cca3ea0937508b8c50f4c32a0972271e8f4 (diff) |
Fix rust warnings
Diffstat (limited to 'webapp/src/components/table.rs')
-rw-r--r-- | webapp/src/components/table.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/components/table.rs b/webapp/src/components/table.rs index b8da804..bccbfe4 100644 --- a/webapp/src/components/table.rs +++ b/webapp/src/components/table.rs @@ -1,6 +1,5 @@ use log::info; use yew::prelude::*; -use yew_router::prelude::*; use crate::use_app_context; @@ -8,9 +7,10 @@ use crate::use_app_context; pub fn table(props: &TableProps) -> Html { let ctx = use_app_context(); - let table_state: UseStateHandle<Option<protocol::TableView>> = use_state(|| None); + // let table_state: UseStateHandle<Option<protocol::TableView>> = use_state(|| None); { - let table_state = table_state.clone(); + // TODO update this from server state + // let table_state = table_state.clone(); let ctx = ctx.clone(); ctx.spawn_async(async move { info!("Getting table state"); |