removed home placeholder from home page

This commit is contained in:
Al Duncanson 2018-11-05 09:45:47 -05:00
parent a753bcfb0f
commit f015e11864
1 changed files with 9 additions and 17 deletions

View File

@ -1,7 +1,6 @@
import React, { Component, Fragment } from 'react'; import React, { Component } from 'react';
import Typography from '@material-ui/core/Typography';
import FlameLinkComponentCreations from '../components/FlameLinkComponentCreations'; import FlameLinkComponentCreations from '../components/FlameLinkComponentCreations';
import flamelinkApp from '../flamelink.js'; import flamelinkApp from '../flamelink';
class Home extends Component { class Home extends Component {
constructor() { constructor() {
@ -10,25 +9,18 @@ class Home extends Component {
global.schemaName = 'martenHome'; global.schemaName = 'martenHome';
this.state = { this.state = {
schemaDetails: '', schemaDetails: '',
} }
flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] }) flamelinkApp.schemas.getFields(global.schemaName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] })
.then(result => this.setState({ .then(result => this.setState({
schemaDetails: result schemaDetails: result
})) }))
} }
render() { render() {
return ( return (
<div> <FlameLinkComponentCreations schemaDetails={this.state.schemaDetails} />
<Typography variant='display1' align='center' gutterBottom>
Home
</Typography>
<Fragment>
<FlameLinkComponentCreations schemaDetails = {this.state.schemaDetails}/>
</Fragment>
</div>
); );
} }
} }