Swap rejoin / forget

This commit is contained in:
David Baker 2017-02-17 16:11:20 +00:00
parent 9f9de46b10
commit a3aea6ba2d

View file

@ -152,15 +152,15 @@ module.exports = React.createClass({
} }
let rejoinBlock; let rejoinBlock;
if (!banned) { if (!banned) {
rejoinBlock = <a onClick={ this.props.onJoinClick }><b>Rejoin</b></a>; rejoinBlock = <div><a onClick={ this.props.onJoinClick }><b>Rejoin</b></a></div>;
} }
joinBlock = ( joinBlock = (
<div> <div>
<div className="mx_RoomPreviewBar_join_text"> <div className="mx_RoomPreviewBar_join_text">
You have been {verb} from {roomName} by {kicker.displayName}.<br /> You have been {verb} from {roomName} by {kicker.displayName}.<br />
{reason} {reason}
<a onClick={ this.props.onForgetClick }><b>Forget</b></a><br />
{rejoinBlock} {rejoinBlock}
<a onClick={ this.props.onForgetClick }><b>Forget</b></a>
</div> </div>
</div> </div>
); );