add functions, create and join room
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user