/** * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import config from '../../../../config/admin.json'; import { loadModels, updateSchema } from './actions'; import { makeSelectModels, makeSelectLoading } from './selectors'; class App extends React.Component { componentWillMount() { this.props.loadModels(); this.props.updateSchema(config.admin.schema); } render() { let content =
; if (this.props.models) { // Assign plugin component to children content = React.Children.map(this.props.children, child => React.cloneElement(child, { exposedComponents: this.props.exposedComponents, }) ); } return (