cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
27 lines (22 loc) • 746 B
JSX
import React, { Component } from "react";
import CluedInFrame from "./cluedInFrame.jsx";
import { StyleRoot, Style } from "radium";
import { mainApp } from "../theme";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
class MainApp extends Component {
render() {
const { q, id } = this.props.params;
return (<MuiThemeProvider><StyleRoot>
<div className="root">
<Style
scopeSelector=".root"
rules={mainApp}
/>
<CluedInFrame id={id} q={q}>
{this.props.children}
</CluedInFrame>
</div>
</StyleRoot></MuiThemeProvider>);
}
}
export default MainApp