[SearchPanel] 액션 추가/VirtualGridList 적용/컴포넌트화
This commit is contained in:
@@ -2,6 +2,10 @@ import { types } from "../actions/actionTypes";
|
||||
|
||||
const initialState = {
|
||||
searchDatas: {},
|
||||
processedDatas: {
|
||||
data: {},
|
||||
totalCount: {},
|
||||
},
|
||||
searchPerformed: false,
|
||||
};
|
||||
|
||||
@@ -14,6 +18,13 @@ export const searchReducer = (state = initialState, action) => {
|
||||
searchPerformed: true,
|
||||
};
|
||||
|
||||
case types.GET_SEARCH_PROCESSED:
|
||||
return {
|
||||
...state,
|
||||
processedDatas: action.payload,
|
||||
searchPerformed: true,
|
||||
};
|
||||
|
||||
case types.RESET_SEARCH:
|
||||
return {
|
||||
...initialState,
|
||||
|
||||
Reference in New Issue
Block a user