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": { "ReleaseNotes": {
"Title": "Release notes", "Title": "Release notes",
"Version": "Version" "Version": "Version"
},
"Server": {
"ActiveSession": "Active session",
"ActiveSessionSubtitle": "Expand to see forwards"
} }
} }

View File

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