This commit is contained in:
focp212@naver.com
2025-11-04 17:03:26 +09:00
parent b19334d08c
commit c662f41ea0
3 changed files with 1 additions and 8 deletions

View File

@@ -16,7 +16,6 @@ export interface AlarmItemProps {
appNotificationTitle?: string;
appNotificationContent?: string;
appNotificationLink?: string;
appNotificationCategories: Array<any>;
setAlarmRoutesOn: (alarmRoutesOn: boolean) => void;
setAlarmOptions: (alarmOptions: AlarmLinkOptions) => void;
};
@@ -28,7 +27,6 @@ export const AlarmItem = ({
appNotificationTitle,
appNotificationContent,
appNotificationLink,
appNotificationCategories,
setAlarmRoutesOn,
setAlarmOptions
}: AlarmItemProps) => {
@@ -52,7 +50,6 @@ export const AlarmItem = ({
return categoryMap[appNotificationCategory || ''] || '';
};
const onClickToNavigate = () => {
if(appNotificationLink){
setAlarmRoutesOn(true);
setAlarmOptions({ linkUrl: appNotificationLink });

View File

@@ -13,12 +13,10 @@ import { AlarmRoutes } from './alarm-routes';
export interface AlarmListProps {
appNotificationCategory: string;
appNotificationCategories: Array<any>;
};
export const AlarmList = ({
appNotificationCategory,
appNotificationCategories
appNotificationCategory
}: AlarmListProps) => {
const { navigate } = useNavigate();
const { t } = useTranslation();
@@ -110,7 +108,6 @@ export const AlarmList = ({
appNotificationTitle={ resultList[i]?.appNotificationTitle }
appNotificationContent={ resultList[i]?.appNotificationContent }
appNotificationLink={ resultList[i]?.appNotificationLink }
appNotificationCategories={ appNotificationCategories }
setAlarmRoutesOn={ setAlarmRoutesOn }
setAlarmOptions={ setAlarmOptions }
></AlarmItem>

View File

@@ -80,7 +80,6 @@ export const ListPage = () => {
</div>
<AlarmList
appNotificationCategory={ appNotificationCategory }
appNotificationCategories={ appNotificationCategories }
></AlarmList>
</div>
</main>