1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/public/js/app.jsx
2020-02-20 08:30:15 +01:00

35 lines
1.0 KiB
JavaScript

var React = require('react');
var TabView = require('./components/TabView');
var Menu = require('./components/Menu');
var EventsComponent = React.createFactory(require('./components/event/EventsComponent'));
var FeatureTogglesComponent = React.createFactory(require('./components/feature/FeatureTogglesComponent'));
var StrategiesComponent = React.createFactory(require('./components/strategy/StrategiesComponent'));
var tabPanes = [
{
name: "Feature Toggles",
content: new FeatureTogglesComponent({pollInterval: 5000})
},
{
name: "Strategies",
content: new StrategiesComponent({})
},
{
name: "Log",
content: new EventsComponent({})
}
];
React.render(
<div>
<Menu />
<div className="container">
<div className="page">
<TabView tabPanes={tabPanes} />
</div>
</div>
</div>
,
document.getElementById('content')
);