ref(chat): de-parameterize AbstractMessageContainer

This commit is contained in:
Leonard Kim 2019-05-08 14:11:54 -07:00 committed by virtuacoplenny
parent cb8282dfe5
commit 4eec13da1c
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ export type Props = {
* *
* @extends PureComponent * @extends PureComponent
*/ */
export default class AbstractMessageContainer<P: Props> extends PureComponent<P> { export default class AbstractMessageContainer extends PureComponent<Props> {
static defaultProps = { static defaultProps = {
messages: [] messages: []
}; };

View File

@ -12,7 +12,7 @@ import styles from './styles';
/** /**
* Implements a container to render all the chat messages in a conference. * Implements a container to render all the chat messages in a conference.
*/ */
export default class MessageContainer extends AbstractMessageContainer<Props> { export default class MessageContainer extends AbstractMessageContainer {
/** /**
* Instantiates a new instance of the component. * Instantiates a new instance of the component.
* *

View File

@ -12,7 +12,7 @@ import ChatMessageGroup from './ChatMessageGroup';
* *
* @extends AbstractMessageContainer * @extends AbstractMessageContainer
*/ */
export default class MessageContainer extends AbstractMessageContainer<Props> { export default class MessageContainer extends AbstractMessageContainer {
/** /**
* Reference to the HTML element at the end of the list of displayed chat * Reference to the HTML element at the end of the list of displayed chat
* messages. Used for scrolling to the end of the chat messages. * messages. Used for scrolling to the end of the chat messages.