[SearchPanel] 액션 추가/VirtualGridList 적용/컴포넌트화

This commit is contained in:
hyunwoo93.cha
2024-02-02 01:14:11 +09:00
parent 35f17bb974
commit fa333b5b35
22 changed files with 585 additions and 20 deletions

View File

@@ -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,