system version component update

master
Tudor Stanciu 2023-03-26 02:51:46 +02:00
parent 484b3d0ab2
commit c61df6b59b
3 changed files with 5 additions and 7 deletions

View File

@ -71,7 +71,6 @@
"Date": "Date" "Date": "Date"
}, },
"SystemVersion": { "SystemVersion": {
"Title": "Component versions",
"Server": "Server: {{version}}", "Server": "Server: {{version}}",
"Api": "API: {{version}}", "Api": "API: {{version}}",
"Frontend": "UI: {{version}}", "Frontend": "UI: {{version}}",

View File

@ -62,7 +62,6 @@
"Date": "Dată" "Date": "Dată"
}, },
"SystemVersion": { "SystemVersion": {
"Title": "Versiuni componente",
"Server": "Server: {{version}}", "Server": "Server: {{version}}",
"Api": "API: {{version}}", "Api": "API: {{version}}",
"Frontend": "UI: {{version}}", "Frontend": "UI: {{version}}",

View File

@ -2,7 +2,6 @@ import React, { useMemo, useEffect, useState } from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { makeStyles } from "@material-ui/core/styles"; import { makeStyles } from "@material-ui/core/styles";
import { import {
Typography,
List, List,
ListItem, ListItem,
ListItemText, ListItemText,
@ -14,6 +13,7 @@ import DeveloperBoardIcon from "@material-ui/icons/DeveloperBoard";
import SettingsInputSvideoIcon from "@material-ui/icons/SettingsInputSvideo"; import SettingsInputSvideoIcon from "@material-ui/icons/SettingsInputSvideo";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import packageData from "../../../../package.json"; import packageData from "../../../../package.json";
import Paper from "@material-ui/core/Paper";
const useStyles = makeStyles(theme => { const useStyles = makeStyles(theme => {
return { return {
@ -80,10 +80,10 @@ const SystemVersionComponent = ({ data }) => {
}, [data, t]); }, [data, t]);
return ( return (
<> <Paper variant="outlined">
<Typography variant="subtitle1" color="textSecondary"> {/* <Typography variant="subtitle1" color="textSecondary">
{t("About.SystemVersion.Title")} {t("About.SystemVersion.Title")}
</Typography> </Typography> */}
<List className={listClass}> <List className={listClass}>
<ListItem> <ListItem>
<ListItemAvatar> <ListItemAvatar>
@ -143,7 +143,7 @@ const SystemVersionComponent = ({ data }) => {
/> />
</ListItem> </ListItem>
</List> </List>
</> </Paper>
); );
}; };