aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/MaintenancesPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/settings/MaintenancesPage.js')
-rw-r--r--modern/src/settings/MaintenancesPage.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/settings/MaintenancesPage.js b/modern/src/settings/MaintenancesPage.js
index 07d78ee9..5b040b55 100644
--- a/modern/src/settings/MaintenancesPage.js
+++ b/modern/src/settings/MaintenancesPage.js
@@ -3,7 +3,6 @@ import {
TableContainer, Table, TableRow, TableCell, TableHead, TableBody, makeStyles, IconButton,
} from '@material-ui/core';
import MoreVertIcon from '@material-ui/icons/MoreVert';
-import t from '../LocalizationProvider';
import { useEffectAsync } from '../reactHelper';
import EditCollectionView from '../EditCollectionView';
@@ -11,6 +10,7 @@ import positionAttributes from '../attributes/positionAttributes';
import { formatDistance, formatSpeed } from '../common/formatter';
import { useAttributePreference } from '../common/preferences';
import OptionsLayout from './OptionsLayout';
+import { useTranslation } from '../LocalizationProvider';
const useStyles = makeStyles((theme) => ({
columnAction: {
@@ -21,6 +21,7 @@ const useStyles = makeStyles((theme) => ({
const MaintenancesView = ({ updateTimestamp, onMenuClick }) => {
const classes = useStyles();
+ const t = useTranslation();
const [items, setItems] = useState([]);
const speedUnit = useAttributePreference('speedUnit');