aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes/geofenceAttributes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 00:21:33 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 00:21:33 -0700
commit105e4ec887e249ec47db83095504012bad22df80 (patch)
tree0ca61c0015b1941362de8d2a82a005a88659dca4 /modern/src/attributes/geofenceAttributes.js
parente6f906dbb565abdb29297ec67db3c922135c628c (diff)
downloadtrackermap-web-105e4ec887e249ec47db83095504012bad22df80.tar.gz
trackermap-web-105e4ec887e249ec47db83095504012bad22df80.tar.bz2
trackermap-web-105e4ec887e249ec47db83095504012bad22df80.zip
More translation migrations
Diffstat (limited to 'modern/src/attributes/geofenceAttributes.js')
-rw-r--r--modern/src/attributes/geofenceAttributes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/attributes/geofenceAttributes.js b/modern/src/attributes/geofenceAttributes.js
index 5f197de7..d9f512f1 100644
--- a/modern/src/attributes/geofenceAttributes.js
+++ b/modern/src/attributes/geofenceAttributes.js
@@ -1,8 +1,8 @@
-import t from '../LocalizationProvider';
+import { useMemo } from 'react';
-export default {
+export const useGeofenceAttributes = (t) => useMemo({
speedLimit: {
name: t('attributeSpeedLimit'),
type: 'string',
},
-};
+}, [t]);