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

View File

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

View File

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