diff --git a/Panels/ProductsPanel.js b/Panels/ProductsPanel.js index 51bf2e5e7..8ba4c18da 100644 --- a/Panels/ProductsPanel.js +++ b/Panels/ProductsPanel.js @@ -60,7 +60,7 @@ function newProductsPanel () { /* First thing is to build the thisObject.productCards array */ - let ecosystem = JSON.parse(window.localStorage.getItem('TEST_ecosystem')) + let ecosystem = JSON.parse(window.localStorage.getItem('ecosystem')) for (let i = 0; i < ecosystem.devTeams.length; i++) { let devTeam = ecosystem.devTeams[i] diff --git a/index.js b/index.js new file mode 100644 index 000000000..55351f6b8 --- /dev/null +++ b/index.js @@ -0,0 +1,107 @@ +import React, { Component } from 'react' + +import { withStyles } from '@material-ui/core/styles' +import { connect } from 'react-redux' +// import { BannerTopBar } from '../common' +import { loadAdvancedAlgosPlatform } from './Scripts/AppPreLoader' + +const styles = theme => ({ + '@global': { + body: { + backgroundColor: theme.palette.common.white + } + }, + layout: { + width: '100%', + height: '100%' + }, + heroContent: { + textColor: theme.palette.common.white, + maxWidth: 600, + height: 800, + margin: '0 auto', + padding: `${theme.spacing.unit * 8}px 0 ${theme.spacing.unit * 6}px` + } +}) + +class Charts extends Component { + componentDidMount () { + console.log("componentDidMount") + // if (window.canvasApp.visible === undefined) { + loadCanvas() // This happens only once. + // } + + // window.canvasApp.visible = true + let body = document.getElementById('body') + body.style = 'margin: 0px; padding: 0px; border: 0px; overflow:hidden;' + this.props.hideFooter() + } + + componentWillUnmount () { + // window.canvasApp.visible = false + let body = document.getElementById('body') + body.style = '' + this.props.showFooter() + } + + render () { + return ( +