73e8f2d4c8
* hidously mangle ChatView to start moving it to React * fix up Realtime/index.js - should be good now? * in theory this should compile * ok the MapChat renders using react... * move Handlers code into react - woot * try reintegrating backbone * fix wrapper styling * chat box opens and closes properly * make the unread count work * organize more sanely * refactor some of the ChatView functions * removed management of chatview from room * css can stop handling logic right about now * makin things work * don't need room here anymore * set raw html in message * make pending work * removeParticipant when mapper left was broken * re-enable scrolling, focus, and blur
8 lines
157 B
JavaScript
8 lines
157 B
JavaScript
import React from 'react'
|
|
|
|
const Unread = props => {
|
|
return props.count ? <div className="chat-unread">{props.count}</div> : null
|
|
}
|
|
|
|
export default Unread
|