Added ability to parse fieldset data. Added some basic stylings for content. Cleaned up code.
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import Layout from '../components/Layout';
|
||||
import FlameLinkComponentCreations from '../components/FlameLinkComponentCreations';
|
||||
import flamelinkApp from '../flamelink.js';
|
||||
|
||||
class Info extends Component {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
global.schemaName = 'martenSchemaDemo';
|
||||
|
||||
this.state = {
|
||||
schemaDetails: '',
|
||||
}
|
||||
|
||||
flamelinkApp.schemas.getFields('martenSchemaDemo', { fields: [ 'title', 'key', 'type', 'gridColumns', 'description' ] })
|
||||
flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] })
|
||||
.then(result => this.setState({
|
||||
schemaDetails: result
|
||||
}))
|
||||
@@ -27,7 +29,7 @@ class Info extends Component {
|
||||
</Typography>
|
||||
|
||||
<Fragment>
|
||||
<Layout schemaDetails = {this.state.schemaDetails}/>
|
||||
<FlameLinkComponentCreations schemaDetails = {this.state.schemaDetails}/>
|
||||
</Fragment>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user