.
This commit is contained in:
@@ -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 });
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -80,7 +80,6 @@ export const ListPage = () => {
|
||||
</div>
|
||||
<AlarmList
|
||||
appNotificationCategory={ appNotificationCategory }
|
||||
appNotificationCategories={ appNotificationCategories }
|
||||
></AlarmList>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user