fix views a bit

This commit is contained in:
Peter Cottle 2015-04-16 19:28:08 +10:00
parent 9a266a3cc4
commit 62b342e665
2 changed files with 11 additions and 6 deletions

View file

@ -13,7 +13,8 @@ var CommandView = React.createClass({
propTypes: {
// the backbone command model
command: React.PropTypes.object.isRequired
command: React.PropTypes.object.isRequired,
id: React.PropTypes.string,
},
componentDidMount: function() {
@ -67,7 +68,7 @@ var CommandView = React.createClass({
]);
return (
<div className="reactCommandView">
<div id={this.props.id} className="reactCommandView">
<p className={commandClass}>
<span className="prompt">{'$'}</span>
{' ' + this.state.rawStr}