|
|
|
@ -6,7 +6,7 @@ import { GroupState, initGroup } from '../models/basisGroupModel';
|
|
|
|
|
|
|
|
|
|
export const groupReducer = createReducer<GroupState, Actions.GroupAction>( |
|
|
|
|
initGroup |
|
|
|
|
) |
|
|
|
|
) |
|
|
|
|
.handleAction(Actions.MY_LIST.success, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const { data, count } = action.payload; |
|
|
|
@ -45,7 +45,7 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>(
|
|
|
|
|
draft.mainListCount = count; |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.handleAction(Actions.GROUP_MYLIST.success, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const { data, count } = action.payload; |
|
|
|
@ -98,17 +98,10 @@ export const groupReducer = createReducer<GroupState, Actions.GroupAction>(
|
|
|
|
|
draft.userCount = count; |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
<<<<<<< HEAD |
|
|
|
|
|
|
|
|
|
.handleAction(Actions.SELECT, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const selectData = action.payload; |
|
|
|
|
draft.selectData = selectData; |
|
|
|
|
======= |
|
|
|
|
//그룹 선택
|
|
|
|
|
.handleAction(Actions.USER_GROUP_SELECT, (state, action) => |
|
|
|
|
produce(state, draft => { |
|
|
|
|
const data = action.payload; |
|
|
|
|
draft.selectGroup = data; |
|
|
|
|
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1 |
|
|
|
|
}) |
|
|
|
|
); |
|
|
|
|