aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/GroupPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-21 14:15:55 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-21 18:31:07 -0700
commit7825be90d88e3965c4a41a4e9011ae29b7670be9 (patch)
tree841404affbc6c8e34201f6e06c90bb9d017d580a /modern/src/settings/GroupPage.js
parent64f446d6b0aa226eb565709f2513de15f40646aa (diff)
downloadtrackermap-web-7825be90d88e3965c4a41a4e9011ae29b7670be9.tar.gz
trackermap-web-7825be90d88e3965c4a41a4e9011ae29b7670be9.tar.bz2
trackermap-web-7825be90d88e3965c4a41a4e9011ae29b7670be9.zip
Better notification title
Diffstat (limited to 'modern/src/settings/GroupPage.js')
-rw-r--r--modern/src/settings/GroupPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/GroupPage.js b/modern/src/settings/GroupPage.js
index b4b0a92a..0bf66c69 100644
--- a/modern/src/settings/GroupPage.js
+++ b/modern/src/settings/GroupPage.js
@@ -14,8 +14,8 @@ import { useTranslation } from '../common/components/LocalizationProvider';
import SettingsMenu from './components/SettingsMenu';
import useCommonDeviceAttributes from '../common/attributes/useCommonDeviceAttributes';
import useGroupAttributes from '../common/attributes/useGroupAttributes';
-import { prefixString } from '../common/util/stringUtils';
import useFeatures from '../common/util/useFeatures';
+import { formatNotificationTitle } from '../common/util/formatter';
const useStyles = makeStyles((theme) => ({
details: {
@@ -106,7 +106,7 @@ const GroupPage = () => {
baseId={item.id}
keyBase="groupId"
keyLink="notificationId"
- titleGetter={(it) => t(prefixString('event', it.type))}
+ titleGetter={(it) => formatNotificationTitle(t, it)}
label={t('sharedNotifications')}
/>
{!features.disableDrivers && (