aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/attributes/useCommonUserAttributes.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-11 18:32:36 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-11 18:32:36 -0700
commite7995f3b7a6b0828b81bebaf556ef7afb59bef61 (patch)
treebd9aebc2ed24253ca0bb2a604ac65ae96730a3d1 /modern/src/common/attributes/useCommonUserAttributes.js
parent0aecbc3bf856b17f42e363eff2bac4fb0ce1f7ed (diff)
downloadtrackermap-web-e7995f3b7a6b0828b81bebaf556ef7afb59bef61.tar.gz
trackermap-web-e7995f3b7a6b0828b81bebaf556ef7afb59bef61.tar.bz2
trackermap-web-e7995f3b7a6b0828b81bebaf556ef7afb59bef61.zip
Automatically add map keys
Diffstat (limited to 'modern/src/common/attributes/useCommonUserAttributes.js')
-rw-r--r--modern/src/common/attributes/useCommonUserAttributes.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useCommonUserAttributes.js b/modern/src/common/attributes/useCommonUserAttributes.js
index c17b5c5d..c1c7d981 100644
--- a/modern/src/common/attributes/useCommonUserAttributes.js
+++ b/modern/src/common/attributes/useCommonUserAttributes.js
@@ -1,6 +1,18 @@
import { useMemo } from 'react';
export default (t) => useMemo(() => ({
+ locationIqKey: {
+ name: t('mapLocationIqKey'),
+ type: 'string',
+ },
+ mapboxAccessToken: {
+ name: t('mapMapboxKey'),
+ type: 'string',
+ },
+ mapTilerKey: {
+ name: t('mapMapTilerKey'),
+ type: 'string',
+ },
notificationTokens: {
name: t('attributeNotificationTokens'),
type: 'string',