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