removed home placeholder from home page
This commit is contained in:
parent
a753bcfb0f
commit
f015e11864
|
@ -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>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue