diff options
Diffstat (limited to 'modern/src/attributes/useDeviceAttributes.js')
-rw-r--r-- | modern/src/attributes/useDeviceAttributes.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/src/attributes/useDeviceAttributes.js b/modern/src/attributes/useDeviceAttributes.js new file mode 100644 index 00000000..33213212 --- /dev/null +++ b/modern/src/attributes/useDeviceAttributes.js @@ -0,0 +1,12 @@ +import { useMemo } from 'react'; + +export default (t) => useMemo({ + speedLimit: { + name: t('attributeSpeedLimit'), + type: 'string', + }, + 'report.ignoreOdometer': { + name: t('attributeReportIgnoreOdometer'), + type: 'boolean', + }, +}, [t]); |