added about menu item

master
Tudor Stanciu 2023-03-20 19:04:29 +02:00
parent 6af31bdcca
commit 234778cc43
3 changed files with 14 additions and 2 deletions

View File

@ -23,7 +23,8 @@
"Machines": "Machines", "Machines": "Machines",
"System": "System", "System": "System",
"Trash": "Trash", "Trash": "Trash",
"Settings": "Settings" "Settings": "Settings",
"About": "About"
}, },
"Login": { "Login": {
"Username": "Username", "Username": "Username",

View File

@ -14,7 +14,8 @@
"Machines": "Mașini", "Machines": "Mașini",
"System": "Sistem", "System": "Sistem",
"Trash": "Gunoi", "Trash": "Gunoi",
"Settings": "Setări" "Settings": "Setări",
"About": "Despre"
}, },
"Login": { "Login": {
"Username": "Utilizator", "Username": "Utilizator",

View File

@ -18,6 +18,7 @@ import DnsIcon from "@material-ui/icons/Dns";
import DeviceHubIcon from "@material-ui/icons/DeviceHub"; import DeviceHubIcon from "@material-ui/icons/DeviceHub";
import SettingsIcon from "@material-ui/icons/Settings"; import SettingsIcon from "@material-ui/icons/Settings";
import DashboardIcon from "@material-ui/icons/Dashboard"; import DashboardIcon from "@material-ui/icons/Dashboard";
import FeaturedPlayListIcon from "@material-ui/icons/FeaturedPlayList";
import { useHistory } from "react-router-dom"; import { useHistory } from "react-router-dom";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import styles from "./styles"; import styles from "./styles";
@ -101,6 +102,15 @@ const Sidebar = ({ open, handleDrawerClose }) => {
<ListItemText primary={t("Menu.Settings")} /> <ListItemText primary={t("Menu.Settings")} />
</ListItem> </ListItem>
</List> </List>
<Divider />
<List>
<ListItem button key="about" onClick={() => history.push("/about")}>
<ListItemIcon>
<FeaturedPlayListIcon />
</ListItemIcon>
<ListItemText primary={t("Menu.About")} />
</ListItem>
</List>
</Drawer> </Drawer>
); );
}; };