aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/ReportLayout.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-02 23:20:12 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-02 23:20:12 -0700
commite6f906dbb565abdb29297ec67db3c922135c628c (patch)
treea6d1c89436d066ec9171b6a68e8d5e7eeb56d2de /modern/src/reports/ReportLayout.js
parente5f07d30df69c1fff28cf1ff8502e4843a8b543c (diff)
downloadtrackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.gz
trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.bz2
trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.zip
Migrate components
Diffstat (limited to 'modern/src/reports/ReportLayout.js')
-rw-r--r--modern/src/reports/ReportLayout.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/reports/ReportLayout.js b/modern/src/reports/ReportLayout.js
index 67d2ab70..9bf1dd5e 100644
--- a/modern/src/reports/ReportLayout.js
+++ b/modern/src/reports/ReportLayout.js
@@ -13,7 +13,7 @@ import ArrowBackIcon from '@material-ui/icons/ArrowBack';
import SideNav from '../components/SideNav';
import NavBar from '../components/NavBar';
-import t from '../LocalizationProvider';
+import { useTranslation } from '../LocalizationProvider';
const useStyles = makeStyles((theme) => ({
root: {
@@ -64,6 +64,8 @@ const ReportLayout = ({ children, filter }) => {
const classes = useStyles();
const history = useHistory();
const location = useLocation();
+ const t = useTranslation();
+
const [openDrawer, setOpenDrawer] = useState(false);
const [reportTitle, setReportTitle] = useState();