diff --git a/client/src/components/ChatBox/ChatBox.js b/client/src/components/ChatBox/ChatBox.js index dccb6d7..ce4ba73 100644 --- a/client/src/components/ChatBox/ChatBox.js +++ b/client/src/components/ChatBox/ChatBox.js @@ -4,7 +4,7 @@ import Header from './Header/Header' import './ChatBox.scss' const ChatBox = ({ user }) => { - + const [online, setOnline] = React.useState(0) const [messages, setMessages] = React.useState([]) const chatContentElement = React.useRef(null) const inputMessageElement = React.useRef(null) @@ -18,30 +18,45 @@ const ChatBox = ({ user }) => { message.value = '' } - const ChatContent = () =>
- {client.username} - {client.date} -
-+ {client.username} + {client.date} +
+