added delete functionality and updated button styles

This commit is contained in:
2025-09-23 16:02:14 +01:00
parent c2074f86a2
commit fe28247b1c
15 changed files with 150 additions and 60 deletions

View File

@@ -41,6 +41,15 @@ export function reducer(state: AlertState, action: AlertPayload) {
}
}
case "REMOVE": {
return {
...state,
alertList: state.alertList.filter(
(alertItem) => alertItem.vrm !== action.payload.vrm
),
};
}
default:
return { ...state };
}