mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-30 03:50:13 -05:00
13 lines
327 B
JavaScript
13 lines
327 B
JavaScript
|
import { fromJS } from 'immutable';
|
||
|
|
||
|
import { NOTIFICATION_POLICY_FETCH_SUCCESS } from 'mastodon/actions/notifications';
|
||
|
|
||
|
export const notificationPolicyReducer = (state = null, action) => {
|
||
|
switch(action.type) {
|
||
|
case NOTIFICATION_POLICY_FETCH_SUCCESS:
|
||
|
return fromJS(action.policy);
|
||
|
default:
|
||
|
return state;
|
||
|
}
|
||
|
};
|