From 7825be90d88e3965c4a41a4e9011ae29b7670be9 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 21 Jul 2022 14:15:55 -0700 Subject: Better notification title --- modern/src/settings/GroupPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/settings/GroupPage.js') 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 && ( -- cgit v1.2.3