From 70b8a43afc3d201c9848150f5e3c77335d322ccb Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 16 Jul 2020 22:34:40 +0200 Subject: [PATCH] added dashboard and settings pages to web --- interface/src/project/EMSESP.tsx | 5 +---- interface/src/project/ProjectMenu.tsx | 19 +++++++++++-------- interface/src/project/ProjectRouting.tsx | 13 ++++++------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/interface/src/project/EMSESP.tsx b/interface/src/project/EMSESP.tsx index 69be47411..f66eaaa5f 100644 --- a/interface/src/project/EMSESP.tsx +++ b/interface/src/project/EMSESP.tsx @@ -7,7 +7,6 @@ import { PROJECT_PATH } from '../api'; import { MenuAppBar } from '../components'; import { AuthenticatedRoute } from '../authentication'; -import EMSESPSettingsController from './EMSESPSettingsController'; import EMSESPStatusController from './EMSESPStatusController'; import EMSESPDevicesController from './EMSESPDevicesController'; @@ -19,16 +18,14 @@ class EMSESP extends Component { render() { return ( - + - - diff --git a/interface/src/project/ProjectMenu.tsx b/interface/src/project/ProjectMenu.tsx index 908b746f0..3c1a5ba57 100644 --- a/interface/src/project/ProjectMenu.tsx +++ b/interface/src/project/ProjectMenu.tsx @@ -2,25 +2,28 @@ import React, { Component } from "react"; import { Link, withRouter, RouteComponentProps } from "react-router-dom"; import { List, ListItem, ListItemIcon, ListItemText } from "@material-ui/core"; + +import SettingsIcon from '@material-ui/icons/Settings'; import SettingsRemoteIcon from "@material-ui/icons/SettingsRemote"; -import { PROJECT_PATH } from "../api"; +// import { PROJECT_PATH } from "../api"; class ProjectMenu extends Component { render() { const path = this.props.match.url; return ( - + - + + + + + + + ); diff --git a/interface/src/project/ProjectRouting.tsx b/interface/src/project/ProjectRouting.tsx index fdf308d9a..6cf5a45f1 100644 --- a/interface/src/project/ProjectRouting.tsx +++ b/interface/src/project/ProjectRouting.tsx @@ -5,25 +5,24 @@ import { PROJECT_PATH } from '../api'; import { AuthenticatedRoute } from '../authentication'; import EMSESP from './EMSESP'; +import EMSESPSettings from './EMSESPSettings'; class ProjectRouting extends Component { render() { return ( - { - /* - * Add your project page routing below. - */ - } - + + + + { /* * The redirect below caters for the default project route and redirecting invalid paths. * The "to" property must match one of the routes above for this to work correctly. */ } - + ) }