Add redis info view

This commit is contained in:
Ken Hibino
2021-01-03 07:32:14 -08:00
parent 094e23f736
commit 5a83172784
4 changed files with 47 additions and 2 deletions

View File

@@ -22,6 +22,7 @@ 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 DoubleArrowIcon from "@material-ui/icons/DoubleArrow";
import CloseIcon from "@material-ui/icons/Close";
import { AppState } from "./store";
import { paths } from "./paths";
@@ -32,6 +33,7 @@ import DashboardView from "./views/DashboardView";
import TasksView from "./views/TasksView";
import SettingsView from "./views/SettingsView";
import ServersView from "./views/ServersView";
import RedisInfoView from "./views/RedisInfoView";
const drawerWidth = 220;
@@ -218,13 +220,18 @@ function App(props: ConnectedProps<typeof connector>) {
<ListItemLink
to={paths.SERVERS}
primary="Servers"
icon={<LayersIcon />}
icon={<DoubleArrowIcon />}
/>
<ListItemLink
to={paths.SCHEDULERS}
primary="Schedulers"
icon={<ScheduleIcon />}
/>
<ListItemLink
to={paths.REDIS}
primary="Redis"
icon={<LayersIcon />}
/>
</div>
</List>
<List>
@@ -260,6 +267,9 @@ function App(props: ConnectedProps<typeof connector>) {
<Route exact path={paths.SERVERS}>
<ServersView />
</Route>
<Route exact path={paths.REDIS}>
<RedisInfoView />
</Route>
<Route exact path={paths.SETTINGS}>
<SettingsView />
</Route>