mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Initial highlighting selected address - styling not final
This commit is contained in:
parent
d1398b137a
commit
91b1c1f0fc
@ -15,6 +15,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
var React = require("react");
|
var React = require("react");
|
||||||
|
var classNames = require('classnames');
|
||||||
var sdk = require("../../../index");
|
var sdk = require("../../../index");
|
||||||
var Invite = require("../../../Invite");
|
var Invite = require("../../../Invite");
|
||||||
var createRoom = require("../../../createRoom");
|
var createRoom = require("../../../createRoom");
|
||||||
@ -149,8 +150,13 @@ module.exports = React.createClass({
|
|||||||
var queryList = [];
|
var queryList = [];
|
||||||
if (this.state.queryList.length > 0) {
|
if (this.state.queryList.length > 0) {
|
||||||
for (var i = 0; i <= maxSelected; i++) {
|
for (var i = 0; i <= maxSelected; i++) {
|
||||||
|
var classes = classNames({
|
||||||
|
"mx_ChatInviteDialog_queryListElement": true,
|
||||||
|
"mx_ChatInviteDialog_selected": this.state.selected === i,
|
||||||
|
});
|
||||||
|
|
||||||
queryList.push(
|
queryList.push(
|
||||||
<div className="mx_ChatInviteDialog_queryListElement" key={i} >
|
<div className={classes} key={i} >
|
||||||
<AddressTile user={this.state.queryList[i]} canDismiss={false} />
|
<AddressTile user={this.state.queryList[i]} canDismiss={false} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user