mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-30 17:59:03 +01:00
470c0a8002
Port a9a43de6d1
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
import { RULES_FETCH_SUCCESS } from 'flavours/glitch/actions/rules';
|
|
import { List as ImmutableList, fromJS } from 'immutable';
|
|
|
|
const initialState = ImmutableList();
|
|
|
|
export default function rules(state = initialState, action) {
|
|
switch (action.type) {
|
|
case RULES_FETCH_SUCCESS:
|
|
return fromJS(action.rules);
|
|
default:
|
|
return state;
|
|
}
|
|
}
|