Apply localization to alarm category labels in alarm entities
- Update alarm-item.tsx to use locale keys for category names instead of API desc1 - Remove unused appNotificationCategories prop from alarm components - Add React key prop to AlarmItem in alarm-list.tsx - Align alarm entity category display with list-page implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -12,12 +12,10 @@ import { DefaultRequestPagination } from '@/entities/common/model/types';
|
||||
|
||||
export interface AlarmListProps {
|
||||
appNotificationCategory: string;
|
||||
appNotificationCategories: Array<any>;
|
||||
};
|
||||
|
||||
export const AlarmList = ({
|
||||
appNotificationCategory,
|
||||
appNotificationCategories
|
||||
appNotificationCategory
|
||||
}: AlarmListProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
const { t } = useTranslation();
|
||||
@@ -100,13 +98,13 @@ export const AlarmList = ({
|
||||
for(let i=0;i<resultList.length;i++){
|
||||
rs.push(
|
||||
<AlarmItem
|
||||
key={i}
|
||||
appNotificationSequence={ resultList[i]?.appNotificationSequence }
|
||||
appNotificationCategory={ resultList[i]?.appNotificationCategory }
|
||||
notificationReceivedDate={ resultList[i]?.notificationReceivedDate }
|
||||
appNotificationTitle={ resultList[i]?.appNotificationTitle }
|
||||
appNotificationContent={ resultList[i]?.appNotificationContent }
|
||||
appNotificationLink={ resultList[i]?.appNotificationLink }
|
||||
appNotificationCategories={ appNotificationCategories }
|
||||
></AlarmItem>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user