]>
cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/reducers/settings.js
1 import { SETTING_CHANGE
} from '../actions/settings';
2 import { STORE_HYDRATE
} from '../actions/store';
3 import Immutable
from 'immutable';
5 const initialState
= Immutable
.Map({
14 regex: Immutable
.Map({
19 notifications: Immutable
.Map({
20 alerts: Immutable
.Map({
27 shows: Immutable
.Map({
34 sounds: Immutable
.Map({
43 export default function settings(state
= initialState
, action
) {
46 return state
.mergeDeep(action
.state
.get('settings'));
48 return state
.setIn(action
.key
, action
.value
);
This page took 0.08616 seconds and 5 git commands to generate.