import React, { Component, PropTypes } from 'react'; import { withRouter } from 'react-router'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import styles from './styles.scss'; import { FormattedMessage } from 'react-intl'; import cx from 'classnames'; import UserListItem from './user-list-item/component.jsx'; import ChatListItem from './chat-list-item/component.jsx'; const propTypes = { openChats: PropTypes.array.isRequired, users: PropTypes.array.isRequired, }; const defaultProps = { }; const listTransition = { enter: styles.enter, enterActive: styles.enterActive, appear: styles.appear, appearActive: styles.appearActive, leave: styles.leave, leaveActive: styles.leaveActive, }; class UserList extends Component { constructor(props) { super(props); this.state = { compact: this.props.compact, }; } componentDidMount() { //to let the whiteboard know that the presentation area's size has changed window.dispatchEvent(new Event('resize')); } componentWillUnmount() { //to let the whiteboard know that the presentation area's size has changed window.dispatchEvent(new Event('resize')); } render() { return (