Removed unused hashtag redux
• Removed: - unused hashtag redux
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import {
|
||||
HASHTAGS_FETCH_REQUEST,
|
||||
HASHTAGS_FETCH_SUCCESS,
|
||||
HASHTAGS_FETCH_FAIL,
|
||||
} from '../actions/hashtags';
|
||||
import { Map as ImmutableMap, List as ImmutableList, fromJS } from 'immutable';
|
||||
|
||||
const initialState = ImmutableMap({
|
||||
items: ImmutableList(),
|
||||
isLoading: false,
|
||||
});
|
||||
|
||||
export default function hashtagsReducer(state = initialState, action) {
|
||||
switch(action.type) {
|
||||
case HASHTAGS_FETCH_REQUEST:
|
||||
return state.set('isLoading', true);
|
||||
case HASHTAGS_FETCH_SUCCESS:
|
||||
return state.withMutations(map => {
|
||||
map.set('items', fromJS(action.tags.map((x => x))))
|
||||
map.set('isLoading', false);
|
||||
});
|
||||
case HASHTAGS_FETCH_FAIL:
|
||||
return state.set('isLoading', false);
|
||||
default:
|
||||
return state;
|
||||
}
|
||||
};
|
||||
@@ -12,7 +12,6 @@ import group_categories from './group_categories'
|
||||
import group_editor from './group_editor'
|
||||
import group_lists from './group_lists'
|
||||
import group_relationships from './group_relationships'
|
||||
import hashtags from './hashtags'
|
||||
import height_cache from './height_cache'
|
||||
import links from './links.js'
|
||||
import lists from './lists'
|
||||
@@ -57,7 +56,6 @@ const reducers = {
|
||||
group_editor,
|
||||
group_lists,
|
||||
group_relationships,
|
||||
hashtags,
|
||||
height_cache,
|
||||
links,
|
||||
lists,
|
||||
|
||||
Reference in New Issue
Block a user