|
@@ -4,7 +4,6 @@ import React from 'react';
|
4
|
4
|
|
5
|
5
|
import { translate } from '../../../base/i18n';
|
6
|
6
|
import { connect } from '../../../base/redux';
|
7
|
|
-import { toggleChat } from '../../actions.web';
|
8
|
7
|
import AbstractChat, {
|
9
|
8
|
_mapStateToProps,
|
10
|
9
|
type Props
|
|
@@ -52,7 +51,6 @@ class Chat extends AbstractChat<Props> {
|
52
|
51
|
// Bind event handlers so they are only bound once for every instance.
|
53
|
52
|
this._renderPanelContent = this._renderPanelContent.bind(this);
|
54
|
53
|
this._onChatInputResize = this._onChatInputResize.bind(this);
|
55
|
|
- this._onToggleChat = this._onToggleChat.bind(this);
|
56
|
54
|
}
|
57
|
55
|
|
58
|
56
|
/**
|
|
@@ -137,9 +135,7 @@ class Chat extends AbstractChat<Props> {
|
137
|
135
|
*/
|
138
|
136
|
_renderChatHeader() {
|
139
|
137
|
return (
|
140
|
|
- <Header
|
141
|
|
- className = 'chat-header'
|
142
|
|
- onCancel = { this._onToggleChat } />
|
|
138
|
+ <Header className = 'chat-header' />
|
143
|
139
|
);
|
144
|
140
|
}
|
145
|
141
|
|
|
@@ -203,18 +199,6 @@ class Chat extends AbstractChat<Props> {
|
203
|
199
|
}
|
204
|
200
|
|
205
|
201
|
_onSendMessage: (string) => void;
|
206
|
|
-
|
207
|
|
- _onToggleChat: () => void;
|
208
|
|
-
|
209
|
|
- /**
|
210
|
|
- * Toggles the chat window.
|
211
|
|
- *
|
212
|
|
- * @returns {Function}
|
213
|
|
- */
|
214
|
|
- _onToggleChat() {
|
215
|
|
- this.props.dispatch(toggleChat());
|
216
|
|
- }
|
217
|
|
-
|
218
|
202
|
}
|
219
|
203
|
|
220
|
204
|
export default translate(connect(_mapStateToProps)(Chat));
|