Browse Source

컴파일 오류 수정

pull/2/head
sanguu 2 years ago
parent
commit
942b2b5033
  1. 20
      src/modules/basis/group/actions/basisGroupAction.ts
  2. 14
      src/modules/basis/group/models/basisGroupModel.ts
  3. 13
      src/modules/basis/group/reducers/basisGroupReducer.ts

20
src/modules/basis/group/actions/basisGroupAction.ts

@ -10,11 +10,8 @@ import {
UserGroupState,
GroupState,
MainGroupData,
<<<<<<< HEAD
SelectData
=======
SelectData,
SelectGroupData
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
} from '../models/basisGroupModel';
//# 나의 그룹 목록 조회
@ -106,13 +103,12 @@ const GROUP_MAIN_LIST_REQUEST = 'basis/group/GROUP_MAIN_LIST_REQUEST';
const GROUP_MAIN_LIST_SUCCESS = 'basis/group/GROUP_MAIN_LIST_SUCCESS';
const GROUP_MAIN_LIST_FAILURE = 'basis/group/GROUP_MAIN_LIST_FAILURE';
<<<<<<< HEAD
//그룹 선택
const SELECT_GROUP = 'basis/group/SELECT_GROUP';
=======
//# 그룹 선택
const ROUP_SELECT = 'basis/group/select';
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
export const MY_LIST = createAsyncAction(
MY_LIST_REQUEST,
@ -220,11 +216,9 @@ export const USER_DELEGATE = createAsyncAction(
USER_DELEGATE_FAILURE
)<UserGroupState, string, AxiosError>();
<<<<<<< HEAD
export const SELECT = createAction(SELECT_GROUP)<SelectData>();
=======
export const USER_GROUP_SELECT = createAction(ROUP_SELECT)<SelectGroupData>();
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
const actions = {
MY_LIST,
@ -245,11 +239,7 @@ const actions = {
USER_DELEGATE,
GROUP_MYLIST,
GROUP_MAIN_LIST,
<<<<<<< HEAD
SELECT
=======
USER_GROUP_SELECT
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
};

14
src/modules/basis/group/models/basisGroupModel.ts

@ -18,18 +18,13 @@ export interface GroupState {
newGroupId: String | '';
searchParams: string | '';
error: ErrorModel | undefined;
<<<<<<< HEAD
selectData: SelectData | undefined;
=======
selectGroup: SelectGroupData | undefined;
}
export interface SelectGroupData {
cstmrSno: number;
groupId: string;
groupNm: string;
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
}
export interface GroupSearchData {
@ -111,7 +106,6 @@ export interface UserGroupData {
export const initGroup = {
myList: undefined,
myListCount: 0,
myDetail: undefined,
groupDetail: undefined,
joinList: undefined,
joinListCount: 0,
@ -127,13 +121,5 @@ export const initGroup = {
newGroupId: '',
searchParams: '',
error: undefined,
<<<<<<< HEAD
selectData: undefined
=======
selectGroup: {
cstmrSno: 0,
groupId: '',
groupNm: ''
}
>>>>>>> c23747b2de282357d7d8522636559c3d986c93e1
};

13
src/modules/basis/group/reducers/basisGroupReducer.ts

@ -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
})
);

Loading…
Cancel
Save