aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2021-12-28 17:37:25 -0600
committerIván Ávalos <avalos@disroot.org>2021-12-28 17:37:25 -0600
commit124ef731471e152a8b0a074b86d8d3253bd955ff (patch)
tree2439e6d7fc3265dbe1127364433ea9d10ac3b10e /modern/src
parent91a28424283de9a435a42018f5902078d7843aed (diff)
downloadetbsa-traccar-web-124ef731471e152a8b0a074b86d8d3253bd955ff.tar.gz
etbsa-traccar-web-124ef731471e152a8b0a074b86d8d3253bd955ff.tar.bz2
etbsa-traccar-web-124ef731471e152a8b0a074b86d8d3253bd955ff.zip
Import cleanup and l10n for DataGrid
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/reports/RouteReportPage.js6
-rw-r--r--modern/src/theme/index.js4
2 files changed, 6 insertions, 4 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index 02aab79..3a2ea6a 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -1,9 +1,9 @@
import React, { useState } from 'react';
-import { Paper, Typography } from '@material-ui/core';
-import { DataGrid, GridOverlay } from '@material-ui/data-grid';
+import { Paper } from '@material-ui/core';
+import { DataGrid } from '@material-ui/data-grid';
import { useTheme } from '@material-ui/core/styles';
import {
- formatDistance, formatSpeed, formatBoolean, formatDate, formatCoordinate, formatPosition,
+ formatDistance, formatSpeed, formatBoolean, formatDate, formatCoordinate,
} from '../common/formatter';
import ReportFilter from './ReportFilter';
import ReportLayout from './ReportLayout';
diff --git a/modern/src/theme/index.js b/modern/src/theme/index.js
index 02865c2..e81f254 100644
--- a/modern/src/theme/index.js
+++ b/modern/src/theme/index.js
@@ -2,11 +2,13 @@ import { createTheme } from '@material-ui/core/styles';
import palette from './palette';
import overrides from './overrides';
import dimensions from './dimensions';
+import { esES } from '@material-ui/core/locale';
+import { esES as dgEsES } from '@material-ui/data-grid'
const theme = createTheme({
palette,
overrides,
dimensions,
-});
+}, esES, dgEsES);
export default theme;