aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes/deviceAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/attributes/deviceAttributes.js')
-rw-r--r--modern/src/attributes/deviceAttributes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/attributes/deviceAttributes.js b/modern/src/attributes/deviceAttributes.js
index 2b874c52..20bb1e09 100644
--- a/modern/src/attributes/deviceAttributes.js
+++ b/modern/src/attributes/deviceAttributes.js
@@ -1,6 +1,6 @@
-import t from '../LocalizationProvider';
+import { useMemo } from 'react';
-export default {
+export const useDeviceAttributes = (t) => useMemo({
speedLimit: {
name: t('attributeSpeedLimit'),
type: 'string',
@@ -9,4 +9,4 @@ export default {
name: t('attributeReportIgnoreOdometer'),
type: 'boolean',
},
-};
+}, [t]);