add functions, create and join room

This commit is contained in:
Ayushya Amitabh
2020-03-28 21:41:21 -04:00
parent d3c19fe4cc
commit 24b2c6a4e0
19 changed files with 4340 additions and 39 deletions
+13
View File
@@ -0,0 +1,13 @@
import React from 'react';
import { Typography } from 'antd';
import './Thread.css';
const Thread = props =>
props.messages.map(m => {
console.log(m);
if (m.uid === '<system>') {
return <Typography.Text className="thread-item system-message" key={m.id} disabled>{m.text}</Typography.Text>
}
});
export default Thread;