update prop types (and fix typo)

This commit is contained in:
Bruno Windels 2019-04-17 19:05:52 +02:00
parent 190143ca6c
commit 0a463472b3

View file

@ -48,9 +48,6 @@ module.exports = React.createClass({
onJoinClick: PropTypes.func, onJoinClick: PropTypes.func,
onRejectClick: PropTypes.func, onRejectClick: PropTypes.func,
onForgetClick: PropTypes.func, onForgetClick: PropTypes.func,
onSignInClick: PropTypes.func,
onSignUpClick: PropTypes.func,
// if inviterName is specified, the preview bar will shown an invite to the room. // if inviterName is specified, the preview bar will shown an invite to the room.
// You should also specify onRejectClick if specifiying inviterName // You should also specify onRejectClick if specifiying inviterName
inviterName: PropTypes.string, inviterName: PropTypes.string,
@ -69,7 +66,9 @@ module.exports = React.createClass({
// purpose of the spinner. // purpose of the spinner.
spinner: PropTypes.bool, spinner: PropTypes.bool,
spinnerState: PropTypes.oneOf(["joining"]), spinnerState: PropTypes.oneOf(["joining"]),
loading: PropTypes.bool,
joining: PropTypes.bool,
rejecting: PropTypes.bool,
// The alias that was used to access this room, if appropriate // The alias that was used to access this room, if appropriate
// If given, this will be how the room is referred to (eg. // If given, this will be how the room is referred to (eg.
// in error messages). // in error messages).
@ -185,7 +184,7 @@ module.exports = React.createClass({
}, },
_roomName: function(atStart = false) { _roomName: function(atStart = false) {
const name = this.props.room ? this.props.room.name : this.props.room_alias; const name = this.props.room ? this.props.room.name : this.props.roomAlias;
if (name) { if (name) {
return name; return name;
} else if (atStart) { } else if (atStart) {