diff options
author | rahighi <rahighi> | 2021-08-26 11:46:48 +0430 |
---|---|---|
committer | rahighi <rahighi> | 2021-08-26 11:46:48 +0430 |
commit | eed89f02a9219417fa5f94c0d6c08f5981d23823 (patch) | |
tree | 78b378e1b1bcc54a068c304b1b9af73aa0e8c3a9 /modern/src/reports | |
parent | db406fcc787df2fa865e5c5fe333f152e533cda1 (diff) | |
download | trackermap-web-eed89f02a9219417fa5f94c0d6c08f5981d23823.tar.gz trackermap-web-eed89f02a9219417fa5f94c0d6c08f5981d23823.tar.bz2 trackermap-web-eed89f02a9219417fa5f94c0d6c08f5981d23823.zip |
added multiple language support with related layout directions
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/ReportLayout.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/reports/ReportLayout.js b/modern/src/reports/ReportLayout.js index c231cd80..48e77451 100644 --- a/modern/src/reports/ReportLayout.js +++ b/modern/src/reports/ReportLayout.js @@ -1,7 +1,7 @@ import React, { useState, useEffect } from 'react'; import { useHistory, useLocation } from 'react-router-dom'; import { - Grid, Typography, Divider, Drawer, makeStyles, IconButton, Hidden, + Grid, Typography, Divider, Drawer, makeStyles, IconButton, Hidden, useTheme, } from '@material-ui/core'; import TimelineIcon from '@material-ui/icons/Timeline'; import PauseCircleFilledIcon from '@material-ui/icons/PauseCircleFilled'; @@ -10,6 +10,7 @@ import NotificationsActiveIcon from '@material-ui/icons/NotificationsActive'; import FormatListBulletedIcon from '@material-ui/icons/FormatListBulleted'; import TrendingUpIcon from '@material-ui/icons/TrendingUp'; import ArrowBackIcon from '@material-ui/icons/ArrowBack'; +import ArrowForwardIcon from '@material-ui/icons/ArrowForward'; import SideNav from '../components/SideNav'; import NavBar from '../components/NavBar'; @@ -66,6 +67,7 @@ const ReportLayout = ({ children, filter }) => { const location = useLocation(); const [openDrawer, setOpenDrawer] = useState(false); const [reportTitle, setReportTitle] = useState(); + const theme = useTheme(); useEffect(() => { routes.forEach((route) => { @@ -103,7 +105,7 @@ const ReportLayout = ({ children, filter }) => { <IconButton onClick={() => history.push('/')} > - <ArrowBackIcon /> + {theme.direction === 'rtl' ? <ArrowForwardIcon /> : <ArrowBackIcon />} </IconButton> <Typography variant="h6" color="inherit" noWrap> {t('reportTitle')} |