Changes from PR feedback

This commit is contained in:
David Baker 2015-10-02 16:44:35 +01:00
parent 050c6cf72f
commit df39c3a281
3 changed files with 2 additions and 6 deletions

View file

@ -14,7 +14,7 @@ Getting started
6. Wait a few seconds for the initial build to finish. 6. Wait a few seconds for the initial build to finish.
7. Open http://127.0.0.1:8080/ in your browser to see your newly built Vector. 7. Open http://127.0.0.1:8080/ in your browser to see your newly built Vector.
Wiht `npm start`, Any changes you make to the source files will cause a rebuild so With `npm start`, any changes you make to the source files will cause a rebuild so
your changes will show up when you refresh. your changes will show up when you refresh.
For production use, run `npm run build` to build all the necessary files For production use, run `npm run build` to build all the necessary files

View file

@ -33,8 +33,6 @@ module.exports = React.createClass({
var text = TextForEvent.textForEvent(this.props.mxEvent); var text = TextForEvent.textForEvent(this.props.mxEvent);
if (text == null || text.length == 0) return null; if (text == null || text.length == 0) return null;
var MessageTimestamp = sdk.getComponent('atoms.MessageTimestamp');
var MemberAvatar = sdk.getComponent('atoms.MemberAvatar');
var timestamp = this.props.last ? <MessageTimestamp ts={this.props.mxEvent.getTs()} /> : null; var timestamp = this.props.last ? <MessageTimestamp ts={this.props.mxEvent.getTs()} /> : null;
var avatar = this.props.mxEvent.sender ? <MemberAvatar member={this.props.mxEvent.sender} /> : null; var avatar = this.props.mxEvent.sender ? <MemberAvatar member={this.props.mxEvent.sender} /> : null;
return ( return (

View file

@ -18,11 +18,9 @@ limitations under the License.
var React = require('react'); var React = require('react');
//var RoomCreateController = require('matrix-react-sdk/lib/controllers/molecules/RoomCreateController')
module.exports = React.createClass({ module.exports = React.createClass({
displayName: 'RoomCreate', displayName: 'RoomCreate',
// mixins: [RoomCreateController],
render: function() { render: function() {
return ( return (
<div className="mx_RoomCreate"> <div className="mx_RoomCreate">