Create servers view

This commit is contained in:
Ken Hibino
2020-12-29 06:40:11 -08:00
parent db0749892b
commit 1f3897c570
5 changed files with 205 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ import MenuIcon from "@material-ui/icons/Menu";
import BarChartIcon from "@material-ui/icons/BarChart";
import LayersIcon from "@material-ui/icons/Layers";
import SettingsIcon from "@material-ui/icons/Settings";
import ScheduleIcon from "@material-ui/icons/Schedule";
import FeedbackIcon from "@material-ui/icons/Feedback";
import CloseIcon from "@material-ui/icons/Close";
import { AppState } from "./store";
@@ -30,6 +31,7 @@ import SchedulersView from "./views/SchedulersView";
import DashboardView from "./views/DashboardView";
import TasksView from "./views/TasksView";
import SettingsView from "./views/SettingsView";
import ServersView from "./views/ServersView";
const drawerWidth = 220;
@@ -213,10 +215,15 @@ function App(props: ConnectedProps<typeof connector>) {
primary="Queues"
icon={<BarChartIcon />}
/>
<ListItemLink
to={paths.SERVERS}
primary="Servers"
icon={<LayersIcon />}
/>
<ListItemLink
to={paths.SCHEDULERS}
primary="Schedulers"
icon={<LayersIcon />}
icon={<ScheduleIcon />}
/>
</div>
</List>
@@ -250,6 +257,9 @@ function App(props: ConnectedProps<typeof connector>) {
<Route exact path={paths.SCHEDULERS}>
<SchedulersView />
</Route>
<Route exact path={paths.SERVERS}>
<ServersView />
</Route>
<Route exact path={paths.SETTINGS}>
<SettingsView />
</Route>