forked from matrix/element-web
Naming conventions
This commit is contained in:
parent
bb06b752b4
commit
4f7dcdf566
|
@ -30,7 +30,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<select className="mx_PresetOption" onChange={this.onValueChanged} defaultValue={this.state.preset}>
|
<select className="mx_Presets" onChange={this.onValueChanged} defaultValue={this.state.preset}>
|
||||||
<option value="private_chat">Private Chat</option>
|
<option value="private_chat">Private Chat</option>
|
||||||
<option value="public_chat">Public Chat</option>
|
<option value="public_chat">Public Chat</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -21,7 +21,7 @@ var React = require('react');
|
||||||
var RoomNameTextboxController = require("../../../../../src/controllers/atoms/create_room/RoomNameTextbox");
|
var RoomNameTextboxController = require("../../../../../src/controllers/atoms/create_room/RoomNameTextbox");
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
displayName: 'CreateRoomButton',
|
displayName: 'RoomNameTextbox',
|
||||||
mixins: [RoomNameTextboxController],
|
mixins: [RoomNameTextboxController],
|
||||||
|
|
||||||
onValueChanged: function(ev) {
|
onValueChanged: function(ev) {
|
||||||
|
|
|
@ -31,13 +31,13 @@ module.exports = React.createClass({
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<ul className="mx_UserIdList" ref="list">
|
<ul className="mx_UserSelector_UserIdList" ref="list">
|
||||||
{this.state.selected_users.map(function(user_id, i) {
|
{this.state.selected_users.map(function(user_id, i) {
|
||||||
return <li key={user_id}>{user_id}</li>
|
return <li key={user_id}>{user_id}</li>
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
<input type="text" ref="user_id_input" className="mx_UserIdInput" placeholder="ex. @bob:example.com"/>
|
<input type="text" ref="user_id_input" className="mx_UserSelector_userIdInput" placeholder="ex. @bob:example.com"/>
|
||||||
<button onClick={this.onAddUserId} className="mx_AddUserId">Add User</button>
|
<button onClick={this.onAddUserId} className="mx_UserSelector_AddUserId">Add User</button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue