mirror of https://github.com/vector-im/riot-web
fix invite prompt
parent
c29ec28dfd
commit
2274cb3f7f
|
@ -40,15 +40,14 @@ module.exports = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
var joinBlock, previewBlock;
|
var joinBlock, previewBlock;
|
||||||
|
|
||||||
if (this.props.inviter) {
|
if (this.props.inviterName) {
|
||||||
joinBlock = (
|
joinBlock = (
|
||||||
<div>
|
<div>
|
||||||
<div className="mx_RoomPreviewBar_invite_text">
|
<div className="mx_RoomPreviewBar_invite_text">
|
||||||
You have been invited to join this room by { this.props.inviterName }
|
You have been invited to join this room by { this.props.inviterName }
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_RoomPreviewBar_join_text">
|
<div className="mx_RoomPreviewBar_join_text">
|
||||||
Would you like to <a onClick={ this.props.onJoinClick }>accept</a> or
|
Would you like to <a onClick={ this.props.onJoinClick }>accept</a> or <a onClick={ this.props.onRejectClick }>decline</a> this invitation?
|
||||||
<a onClick={ this.props.onRejectClick }>decline</a> this invitation?
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue