aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 09:57:50 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 09:57:50 -0700
commitc75dbd5410dd0eed2576afdedcfeb6082b4f7225 (patch)
tree69611e16a4823d5cf78b17c9199a7a3ea72dc7ee /modern/src/attributes
parenta15843964ef7c2a51bf861dcb395c78062996c87 (diff)
downloadtrackermap-web-c75dbd5410dd0eed2576afdedcfeb6082b4f7225.tar.gz
trackermap-web-c75dbd5410dd0eed2576afdedcfeb6082b4f7225.tar.bz2
trackermap-web-c75dbd5410dd0eed2576afdedcfeb6082b4f7225.zip
Fix lint issues
Diffstat (limited to 'modern/src/attributes')
-rw-r--r--modern/src/attributes/useDeviceAttributes.js (renamed from modern/src/attributes/deviceAttributes.js)2
-rw-r--r--modern/src/attributes/useGeofenceAttributes.js (renamed from modern/src/attributes/geofenceAttributes.js)2
-rw-r--r--modern/src/attributes/usePositionAttributes.js (renamed from modern/src/attributes/positionAttributes.js)2
-rw-r--r--modern/src/attributes/useUserAttributes.js (renamed from modern/src/attributes/userAttributes.js)2
4 files changed, 4 insertions, 4 deletions
diff --git a/modern/src/attributes/deviceAttributes.js b/modern/src/attributes/useDeviceAttributes.js
index 20bb1e09..33213212 100644
--- a/modern/src/attributes/deviceAttributes.js
+++ b/modern/src/attributes/useDeviceAttributes.js
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
-export const useDeviceAttributes = (t) => useMemo({
+export default (t) => useMemo({
speedLimit: {
name: t('attributeSpeedLimit'),
type: 'string',
diff --git a/modern/src/attributes/geofenceAttributes.js b/modern/src/attributes/useGeofenceAttributes.js
index d9f512f1..3c17755e 100644
--- a/modern/src/attributes/geofenceAttributes.js
+++ b/modern/src/attributes/useGeofenceAttributes.js
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
-export const useGeofenceAttributes = (t) => useMemo({
+export default (t) => useMemo({
speedLimit: {
name: t('attributeSpeedLimit'),
type: 'string',
diff --git a/modern/src/attributes/positionAttributes.js b/modern/src/attributes/usePositionAttributes.js
index 49a64f71..825ec363 100644
--- a/modern/src/attributes/positionAttributes.js
+++ b/modern/src/attributes/usePositionAttributes.js
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
-export const usePositionAttributes = (t) => useMemo({
+export default (t) => useMemo({
raw: {
name: t('positionRaw'),
type: 'string',
diff --git a/modern/src/attributes/userAttributes.js b/modern/src/attributes/useUserAttributes.js
index d9a5814d..bf8c95af 100644
--- a/modern/src/attributes/userAttributes.js
+++ b/modern/src/attributes/useUserAttributes.js
@@ -1,6 +1,6 @@
import { useMemo } from 'react';
-export const useUserAttributes = (t) => useMemo({
+export default (t) => useMemo({
notificationTokens: {
name: t('attributeNotificationTokens'),
type: 'string',