Removed Info.js and replaced with About.js for clarity. Also added some stylings for FlameLink images using css.

This commit is contained in:
ajmaley
2018-11-12 19:03:00 -05:00
parent f015e11864
commit 31a5887b7b
5 changed files with 47 additions and 9 deletions

34
src/pages/About.js Normal file
View File

@@ -0,0 +1,34 @@
import React, { Component, Fragment } from 'react';
import FlameLinkComponentCreations from '../components/FlameLinkComponentCreations';
import flamelinkApp from '../flamelink.js';
class About extends Component {
constructor() {
super();
global.schemaName = 'martenSchemaDemo';
this.state = {
schemaDetails: '',
}
flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] })
.then(result => this.setState({
schemaDetails: result
}))
}
render() {
return (
<div>
<Fragment>
<FlameLinkComponentCreations schemaDetails = {this.state.schemaDetails}/>
</Fragment>
</div>
);
}
}
export default About;