diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-15 13:04:00 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-15 13:04:00 -0700 |
commit | 6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc (patch) | |
tree | 8712dcf947f4e6fa0795faa4667e9bb787775d72 /modern/src/common/attributes/useCommonDeviceAttributes.js | |
parent | 5faf345b841da9af97a45cc057a58b63b2379388 (diff) | |
download | trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.gz trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.tar.bz2 trackermap-web-6af8b218a1d9be4d8dcf6a8398b08c874d8a12dc.zip |
Update known attributes
Diffstat (limited to 'modern/src/common/attributes/useCommonDeviceAttributes.js')
-rw-r--r-- | modern/src/common/attributes/useCommonDeviceAttributes.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useCommonDeviceAttributes.js b/modern/src/common/attributes/useCommonDeviceAttributes.js new file mode 100644 index 00000000..8a4d886c --- /dev/null +++ b/modern/src/common/attributes/useCommonDeviceAttributes.js @@ -0,0 +1,13 @@ +import { useMemo } from 'react'; + +export default (t) => useMemo(() => ({ + speedLimit: { + name: t('attributeSpeedLimit'), + type: 'number', + subtype: 'speed', + }, + 'report.ignoreOdometer': { + name: t('attributeReportIgnoreOdometer'), + type: 'boolean', + }, +}), [t]); |