diff --git a/package-lock.json b/package-lock.json index 7f64291..ae2271d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5679,7 +5679,7 @@ }, "core-js": { "version": "2.5.5", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz", + "resolved": "http://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz", "integrity": "sha1-sU3ek2xkDAV5prUMq8wTLdYSfjs=" }, "firebase": { diff --git a/src/pages/About.js b/src/pages/About.js index 801b3c7..7010f52 100644 --- a/src/pages/About.js +++ b/src/pages/About.js @@ -15,8 +15,11 @@ const styles = theme => ({ class About extends Component { state = { + summarySchemaName: 'martenAboutSummary', researcherSchemaName: 'martenAbout', developerSchemaName: 'martenAboutDevelopers', + summarySchemaDetails: '', + summarySchemaType: '', researcherSchemaDetails: '', researcherSchemaType: '', developerSchemaDetails: '', @@ -25,6 +28,18 @@ class About extends Component { componentDidMount() { document.title = 'Marten Tracker | About'; + + + // Pulling in schema details for summary + flamelinkApp.schemas.getFields(this.state.summarySchemaName, { fields: ['title', 'key', 'type', 'gridColumns', 'description', 'options'] }) + .then(result => this.setState({ + summarySchemaDetails: result + })) + + flamelinkApp.schemas.get(this.state.summarySchemaName) + .then(result => this.setState({ + summarySchemaType: result.type + })) // Pulling in schema details for researchers @@ -56,6 +71,8 @@ class About extends Component { return ( + Introduction + Researchers Developers