mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-10 15:49:03 +01:00
13 lines
334 B
JavaScript
13 lines
334 B
JavaScript
|
import { fromJS } from 'immutable';
|
||
|
|
||
|
import { NOTIFICATION_POLICY_FETCH_SUCCESS } from 'flavours/glitch/actions/notifications';
|
||
|
|
||
|
export const notificationPolicyReducer = (state = null, action) => {
|
||
|
switch(action.type) {
|
||
|
case NOTIFICATION_POLICY_FETCH_SUCCESS:
|
||
|
return fromJS(action.policy);
|
||
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
};
|