You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
344 B
13 lines
344 B
import { RULES_FETCH_SUCCESS } from 'mastodon/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; |
|
} |
|
}
|
|
|