diff --git a/app/components/ChatRoom.js b/app/components/ChatRoom.js index 91c9809..4b26f2e 100644 --- a/app/components/ChatRoom.js +++ b/app/components/ChatRoom.js @@ -3,21 +3,14 @@ import React, { Fragment, Component, PureComponent, createRef } from 'react'; import { Formik } from 'formik'; import autoscroll from 'autoscroll-react'; import List from '@material-ui/core/List'; -import ListItem from '@material-ui/core/ListItem'; -import ListItemAvatar from '@material-ui/core/ListItemAvatar'; -import Avatar from '@material-ui/core/Avatar'; -import ListItemText from '@material-ui/core/ListItemText'; import Divider from '@material-ui/core/Divider'; import Grid from '@material-ui/core/Grid'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; import Dropzone from 'react-dropzone'; -import Jazzicon, { jsNumberForAddress } from 'react-jazzicon'; import { Picker } from 'emoji-mart'; -import InsertEmoticon from '@material-ui/icons/InsertEmoticon' -import AddCircle from '@material-ui/icons/AddCircle' -import ChatBox, { Emoji } from './ChatBox'; +import ChatBox from './ChatBox'; import ChatHeader from './ChatHeader'; import Userlist from './Userlist'; import { uploadFileAndSend } from '../utils/ipfs'; @@ -89,7 +82,7 @@ class ChatRoom extends Component { } uploadFileDialog() { - this.fileInput.click(); + this.fileInput.click(); } fileChangedHandler(event) { @@ -215,32 +208,11 @@ class ChatRoom extends Component { )} - + - {false && - - {sortedUsers.map(user => ( - - 10*1000 ? 'lightgrey' : 'lightgreen'), - 'border-radius': '50%', - 'margin-right': '10px' - }}/> - - - - - - - - ))} - - } ) } diff --git a/app/components/Userlist.jsx b/app/components/Userlist.jsx index 81f3899..5c9000c 100644 --- a/app/components/Userlist.jsx +++ b/app/components/Userlist.jsx @@ -55,12 +55,14 @@ class Userlist extends PureComponent { {usersList.map(user => ( - {userOffline(channelUsers[user]) ? : } +
+ {userOffline(channelUsers[user]) ? : } +
))}