active session translations

master
Tudor Stanciu 2020-05-18 23:52:06 +03:00
parent 352f5468f7
commit adc282511c
3 changed files with 14 additions and 4 deletions

View File

@ -50,5 +50,9 @@
"ReleaseNotes": {
"Title": "Release notes",
"Version": "Version"
},
"Server": {
"ActiveSession": "Active session",
"ActiveSessionSubtitle": "Expand to see forwards"
}
}

View File

@ -41,5 +41,9 @@
"ReleaseNotes": {
"Title": "Note lansare",
"Version": "Versiune"
},
"Server": {
"ActiveSession": "Sesiune activă",
"ActiveSessionSubtitle": "Extindeţi pentru a vedea redirecţionările"
}
}

View File

@ -11,14 +11,16 @@ import Avatar from "@material-ui/core/Avatar";
import IconButton from "@material-ui/core/IconButton";
import Typography from "@material-ui/core/Typography";
import ExpandMoreIcon from "@material-ui/icons/ExpandMore";
import ShareRoundedIcon from "@material-ui/icons/ShareRounded";
import SurroundSoundRoundedIcon from "@material-ui/icons/SurroundSoundRounded";
import ActiveSessionSummary from "./ActiveSessionSummary";
import styles from "../../../components/common/styles/expandableCardStyles";
import { useTranslation } from "react-i18next";
const useStyles = makeStyles(styles);
const ActiveSessionComponent = ({ session }) => {
const classes = useStyles();
const { t } = useTranslation();
const [expanded, setExpanded] = React.useState(false);
const handleExpandClick = () => {
@ -30,7 +32,7 @@ const ActiveSessionComponent = ({ session }) => {
<CardHeader
avatar={
<Avatar aria-label="recipe" className={classes.avatar}>
<ShareRoundedIcon />
<SurroundSoundRoundedIcon />
</Avatar>
}
action={
@ -45,8 +47,8 @@ const ActiveSessionComponent = ({ session }) => {
<ExpandMoreIcon />
</IconButton>
}
title={<strong>Active session</strong>}
subheader="Expand to see forwards"
title={<strong>{t("Server.ActiveSession")}</strong>}
subheader={t("Server.ActiveSessionSubtitle")}
/>
<CardContent>
<ActiveSessionSummary session={session} />