From 124ef731471e152a8b0a074b86d8d3253bd955ff Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 28 Dec 2021 17:37:25 -0600 Subject: Import cleanup and l10n for DataGrid --- modern/src/reports/RouteReportPage.js | 6 +++--- modern/src/theme/index.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'modern/src') 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; -- cgit v1.2.3