Skip to content

Commit

Permalink
feat(ui): Rename about page to system information
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Jan 18, 2022
1 parent b8f8eb0 commit ad1dd16
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions frontend/src/components/ValetudoAppBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
DarkMode as DarkModeIcon,
Map as MapManagementIcon,
Home as HomeIcon,
Info as InfoIcon,
List as ListIcon,
Menu as MenuIcon,
ArrowBack as BackIcon,
Expand All @@ -34,6 +33,7 @@ import {
GitHub as GithubIcon,
Favorite as DonateIcon,
MenuBook as DocsIcon,
DeveloperBoard as SystemInformationIcon,
SvgIconComponent
} from "@mui/icons-material";
import {Link, useRouteMatch} from "react-router-dom";
Expand Down Expand Up @@ -211,10 +211,10 @@ const menuTree: Array<MenuEntry | MenuSubEntry | MenuSubheader> = [
},
{
kind: "MenuEntry",
routeMatch: "/settings/about",
title: "About",
menuIcon: InfoIcon,
menuText: "About"
routeMatch: "/settings/system_information",
title: "System Information",
menuIcon: SystemInformationIcon,
menuText: "System Information"
},
];

Expand Down
6 changes: 3 additions & 3 deletions frontend/src/settings/SettingsRouter.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Route, Switch} from "react-router";
import {useRouteMatch} from "react-router-dom";
import About from "./About";
import SystemInformation from "./SystemInformation";
import Timers from "./timers";
import Log from "./Log";
import Updater from "./Updater";
Expand Down Expand Up @@ -36,8 +36,8 @@ const SettingsRouter = (): JSX.Element => {

return (
<Switch>
<Route exact path={path + "/about"}>
<About/>
<Route exact path={path + "/system_information"}>
<SystemInformation/>
</Route>
<Route exact path={path + "/map_management"}>
<MapManagement/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const SystemRuntimeInfo = (): JSX.Element => {
);
};

const About = (): JSX.Element => {
const SystemInformation = (): JSX.Element => {
const {
data: robotInformation,
isLoading: robotInformationLoading,
Expand Down Expand Up @@ -413,4 +413,4 @@ const About = (): JSX.Element => {
);
};

export default About;
export default SystemInformation;

0 comments on commit ad1dd16

Please sign in to comment.