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:
Jay Sheen
2025-11-04 15:57:59 +09:00
parent 1d0c90b64c
commit 5375e40768
3 changed files with 13 additions and 12 deletions

View File

@@ -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>
);
}