Fixing template

This commit is contained in:
Richard Ramos 2018-05-15 09:53:05 -04:00 committed by Pascal Precht
parent 04ad83aee3
commit 2c18caf481
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 26 additions and 26 deletions

View File

@ -6,32 +6,6 @@ import ReactDOM from 'react-dom';
import { FormGroup, ControlLabel, FormControl, Checkbox, Button, Alert, InputGroup } from 'react-bootstrap';
class {{contractName}}UI extends React.Component {
constructor (props) {
super(props);
this.state = {
};
}
render(){
return (<div>
{{#each functions}}
<{{capitalize name}}Form{{@index}} />
{{/each}}
</div>);
}
}
ReactDOM.render(<div>
<h1>{{title}}</h1>
<{{contractName}}UI />
</div>,
document.getElementById('app')
);
{{#each functions}}
class {{capitalize name}}Form{{@index}} extends React.Component {
constructor(props){
@ -186,3 +160,29 @@ class {{capitalize name}}Form{{@index}} extends React.Component {
}
{{/each}}
class {{contractName}}UI extends React.Component {
constructor (props) {
super(props);
this.state = {
};
}
render(){
return (<div>
{{#each functions}}
<{{capitalize name}}Form{{@index}} />
{{/each}}
</div>);
}
}
ReactDOM.render(<div>
<h1>{{title}}</h1>
<{{contractName}}UI />
</div>,
document.getElementById('app')
);