added delete functionality and updated button styles
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user