add all props to proptypes

pull/21833/head
Bruno Windels 2019-08-07 14:07:48 +02:00
parent 33c6945fc4
commit fdf5fca628
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import React from 'react';
import {_t} from '../../../languageHandler';
import PropTypes from 'prop-types';
import dis from '../../../dispatcher';
import EditorModel from '../../../editor/model';
@ -33,6 +32,9 @@ export default class BasicMessageEditor extends React.Component {
static propTypes = {
model: PropTypes.instanceOf(EditorModel).isRequired,
room: PropTypes.instanceOf(Room).isRequired,
placeholder: PropTypes.string,
label: PropTypes.string, // the aria label
initialCaret: PropTypes.object, // See DocumentPosition in editor/model.js
};
constructor(props, context) {