add dashboardpage to router

pull/10616/head
Jade McGough 2017-01-13 17:39:41 -08:00
parent 287b055f76
commit 1f42ca8943
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,11 @@
const DashboardPage = React.createClass({
import React from 'react';
const DashboardPage = React.createClass({
render() {
return (
<div></div>
);
},
});
export default DashboardPage;

View File

@ -1,2 +1,3 @@
import DashboardsPage from './containers/DashboardsPage';
export {DashboardsPage};
import DashboardPage from './containers/DashboardPage';
export {DashboardsPage, DashboardPage};

View File

@ -11,7 +11,7 @@ import {KubernetesPage} from 'src/kubernetes';
import {Login} from 'src/auth';
import {KapacitorPage, KapacitorRulePage, KapacitorRulesPage, KapacitorTasksPage} from 'src/kapacitor';
import DataExplorer from 'src/data_explorer';
import {DashboardsPage} from 'src/dashboards';
import {DashboardsPage, DashboardPage} from 'src/dashboards';
import {CreateSource, SourcePage, ManageSources} from 'src/sources';
import NotFound from 'src/shared/components/NotFound';
import configureStore from 'src/store/configureStore';
@ -106,6 +106,7 @@ const Root = React.createClass({
<Route path="kapacitor-tasks" component={KapacitorTasksPage} />
<Route path="alerts" component={AlertsApp} />
<Route path="dashboards" component={DashboardsPage} />
<Route path="dashboards/:id" component={DashboardPage} />
<Route path="alert-rules" component={KapacitorRulesPage} />
<Route path="alert-rules/:ruleID" component={KapacitorRulePage} />
<Route path="alert-rules/new" component={KapacitorRulePage} />