remove onChildResize in RoomView as it's unused
This commit is contained in:
parent
30d848b86e
commit
f71a9f10dd
3 changed files with 2 additions and 22 deletions
|
@ -412,7 +412,6 @@ export default class MessageComposer extends React.Component {
|
|||
<MessageComposerInput
|
||||
ref={(c) => this.messageComposerInput = c}
|
||||
key="controls_input"
|
||||
onResize={this.props.onResize}
|
||||
room={this.props.room}
|
||||
placeholder={placeholderText}
|
||||
onFilesPasted={this.uploadFiles}
|
||||
|
@ -505,10 +504,6 @@ export default class MessageComposer extends React.Component {
|
|||
}
|
||||
|
||||
MessageComposer.propTypes = {
|
||||
// a callback which is called when the height of the composer is
|
||||
// changed due to a change in content.
|
||||
onResize: PropTypes.func,
|
||||
|
||||
// js-sdk Room object
|
||||
room: PropTypes.object.isRequired,
|
||||
|
||||
|
|
|
@ -135,10 +135,6 @@ function rangeEquals(a: Range, b: Range): boolean {
|
|||
*/
|
||||
export default class MessageComposerInput extends React.Component {
|
||||
static propTypes = {
|
||||
// a callback which is called when the height of the composer is
|
||||
// changed due to a change in content.
|
||||
onResize: PropTypes.func,
|
||||
|
||||
// js-sdk Room object
|
||||
room: PropTypes.object.isRequired,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue