Naming conventions

This commit is contained in:
Erik Johnston 2015-07-14 17:48:12 +01:00
parent bb06b752b4
commit 4f7dcdf566
3 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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) {

View File

@ -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>
); );
} }