diff options
Diffstat (limited to 'modern/src/settings/MaintenancesPage.js')
-rw-r--r-- | modern/src/settings/MaintenancesPage.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modern/src/settings/MaintenancesPage.js b/modern/src/settings/MaintenancesPage.js index 5b040b55..a59a24e1 100644 --- a/modern/src/settings/MaintenancesPage.js +++ b/modern/src/settings/MaintenancesPage.js @@ -6,7 +6,7 @@ import MoreVertIcon from '@material-ui/icons/MoreVert'; import { useEffectAsync } from '../reactHelper'; import EditCollectionView from '../EditCollectionView'; -import positionAttributes from '../attributes/positionAttributes'; +import { usePositionAttributes } from '../attributes/positionAttributes'; import { formatDistance, formatSpeed } from '../common/formatter'; import { useAttributePreference } from '../common/preferences'; import OptionsLayout from './OptionsLayout'; @@ -23,6 +23,8 @@ const MaintenancesView = ({ updateTimestamp, onMenuClick }) => { const classes = useStyles(); const t = useTranslation(); + const positionAttributes = usePositionAttributes(t); + const [items, setItems] = useState([]); const speedUnit = useAttributePreference('speedUnit'); const distanceUnit = useAttributePreference('distanceUnit'); |