From 4fba3db3dbf641ab9b86f0d669a2d029e0919773 Mon Sep 17 00:00:00 2001 From: ajmaley Date: Thu, 1 Nov 2018 21:19:34 -0400 Subject: [PATCH] Added FlameLink to Homepage. --- src/pages/Home.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/pages/Home.js b/src/pages/Home.js index 76e223f..74249d8 100644 --- a/src/pages/Home.js +++ b/src/pages/Home.js @@ -1,7 +1,23 @@ -import React, { Component } from 'react'; +import React, { Component, Fragment } from 'react'; import Typography from '@material-ui/core/Typography'; +import FlameLinkComponentCreations from '../components/FlameLinkComponentCreations'; +import flamelinkApp from '../flamelink.js'; class Home extends Component { + constructor() { + super(); + + global.schemaName = 'martenInfo'; + + this.state = { + schemaDetails: '', + } + + flamelinkApp.schemas.getFields(global.schemaName, { fields: [ 'title', 'key', 'type', 'gridColumns', 'description', 'options' ] }) + .then(result => this.setState({ + schemaDetails: result + })) + } render() { return ( @@ -9,6 +25,9 @@ class Home extends Component { Home + + + ); }