aboutsummaryrefslogtreecommitdiff
path: root/modern/src/attributes/userAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/attributes/userAttributes.js')
-rw-r--r--modern/src/attributes/userAttributes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/attributes/userAttributes.js b/modern/src/attributes/userAttributes.js
index 33a6657c..d9a5814d 100644
--- a/modern/src/attributes/userAttributes.js
+++ b/modern/src/attributes/userAttributes.js
@@ -1,6 +1,6 @@
-import t from '../LocalizationProvider';
+import { useMemo } from 'react';
-export default {
+export const useUserAttributes = (t) => useMemo({
notificationTokens: {
name: t('attributeNotificationTokens'),
type: 'string',
@@ -65,4 +65,4 @@ export default {
name: t('sharedTimezone'),
type: 'string',
},
-};
+}, [t]);