rm unused code
This commit is contained in:
parent
0729ffc077
commit
31cd79c543
1 changed files with 1 additions and 7 deletions
|
@ -1,9 +1,5 @@
|
|||
use crate::components::websocket::WebSocketContext;
|
||||
use leptos::{
|
||||
ev,
|
||||
html::{Input, Textarea},
|
||||
prelude::*,
|
||||
};
|
||||
use leptos::{ev, html::Textarea, prelude::*};
|
||||
use leptos_use::core::ConnectionReadyState;
|
||||
use lib::*;
|
||||
use serde_json::to_string;
|
||||
|
@ -14,14 +10,12 @@ pub fn Chat() -> impl IntoView {
|
|||
let websocket = expect_context::<WebSocketContext>();
|
||||
let chat_context = expect_context::<ReadSignal<Option<ChatMessage>>>();
|
||||
let chat_update_context = expect_context::<ReadSignal<Option<ChatUpdate>>>();
|
||||
let connected = move || websocket.ready_state.get() == ConnectionReadyState::Open;
|
||||
|
||||
// Chat stuff
|
||||
let chat_history = RwSignal::<Vec<String>>::new(vec![]);
|
||||
let users = RwSignal::<Vec<String>>::new(vec![]);
|
||||
let chat_name = RwSignal::<String>::new("".to_string());
|
||||
let chat_input = RwSignal::new(String::new());
|
||||
let chat_input_ref = NodeRef::<Input>::new();
|
||||
let chat_history_ref = NodeRef::<Textarea>::new();
|
||||
|
||||
// Connection status updates in chat window
|
||||
|
|
Loading…
Add table
Reference in a new issue