planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

18
node_modules/redux-notifications/src/reducer.js generated vendored Normal file
View File

@@ -0,0 +1,18 @@
import { NOTIF_SEND, NOTIF_DISMISS, NOTIF_CLEAR } from './actions';
export default function notifs(domain = [], action) {
if (!action || !action.type) return domain;
switch (action.type) {
case NOTIF_SEND:
return [action.payload, ...domain.filter(({ id }) => id !== action.payload.id)];
case NOTIF_DISMISS:
return domain.filter(notif =>
notif.id !== action.payload
);
case NOTIF_CLEAR:
return [];
default:
return domain;
}
}