Category Selection on Search Page

This commit is contained in:
Qstick
2020-11-20 15:55:26 -05:00
parent d2a8acb1a6
commit eb697b630e
26 changed files with 604 additions and 122 deletions
@@ -0,0 +1,48 @@
import createFetchHandler from 'Store/Actions/Creators/createFetchHandler';
import { createThunk } from 'Store/thunks';
//
// Variables
const section = 'settings.indexerCategories';
//
// Actions Types
export const FETCH_INDEXER_CATEGORIES = 'settings/indexerFlags/fetchIndexerCategories';
//
// Action Creators
export const fetchIndexerCategories = createThunk(FETCH_INDEXER_CATEGORIES);
//
// Details
export default {
//
// State
defaultState: {
isFetching: false,
isPopulated: false,
error: null,
items: []
},
//
// Action Handlers
actionHandlers: {
[FETCH_INDEXER_CATEGORIES]: createFetchHandler(section, '/indexer/categories')
},
//
// Reducers
reducers: {
}
};