diff --git a/public/js/UnleashApp.jsx b/public/js/UnleashApp.jsx index 2ec4379c05..b407773a5c 100644 --- a/public/js/UnleashApp.jsx +++ b/public/js/UnleashApp.jsx @@ -1,20 +1,11 @@ var React = require('react'); -var UserStore = require('./stores/UserStore'); +var Router = require('react-router'); var Menu = require('./components/Menu'); var ErrorMessages = require('./components/ErrorMessages'); var initalizer = require('./stores/initalizer'); -var LogEntriesComponent = require('./components/log/LogEntriesComponent'); -var FeatureTogglesComponent = require('./components/feature/FeatureTogglesComponent'); -var StrategiesComponent = require('./components/strategy/StrategiesComponent'); -var ArchiveFeatureComponent = require('./components/feature/ArchiveFeatureComponent'); -var Router = require('react-router'); -var DefaultRoute = Router.DefaultRoute; var Link = Router.Link; -var Route = Router.Route; var RouteHandler = Router.RouteHandler; -UserStore.init(); - var UnleashApp = React.createClass({ contextTypes: { router: React.PropTypes.func @@ -24,22 +15,22 @@ var UnleashApp = React.createClass({ initalizer(30); }, + renderLink: function(id, label) { + return ( + + {label} + + ); + }, + render: function () { return (