aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes/positionAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/attributes/positionAttributes.js')
-rw-r--r--modern/src/attributes/positionAttributes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/attributes/positionAttributes.js b/modern/src/attributes/positionAttributes.js
index b44b6062..49a64f71 100644
--- a/modern/src/attributes/positionAttributes.js
+++ b/modern/src/attributes/positionAttributes.js
@@ -1,6 +1,6 @@
-import t from '../LocalizationProvider';
+import { useMemo } from 'react';
-export default {
+export const usePositionAttributes = (t) => useMemo({
raw: {
name: t('positionRaw'),
type: 'string',
@@ -18,4 +18,4 @@ export default {
type: 'number',
dataType: 'distance',
},
-};
+}, [t]);