Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (35 sloc) 699 Bytes
import React, { Component, PropTypes as T } from 'react';
export default class Project extends Component {
static propTypes = {
rvc: T.object,
onRemove: T.func
};
constructor () {
super();
}
render () {
const {
rvc,
onRemove
} = this.props;
const sc = rvc.getSubControllers();
return (
<div>
<input
type='text'
placeholder='Title'
value={sc.title.value}
onChange={event => sc.title.onChange(event.target.value)}
autoFocus
/>
<button
onClick={onRemove}
>
- Remove
</button>
<br />
<br />
</div>
);
}
}
You can’t perform that action at this time.