Skip to content

Commit

Permalink
Merge pull request #194 from space-401/dev
Browse files Browse the repository at this point in the history
🌈 feat : 배포λ₯Ό μœ„ν•œ main 병합
  • Loading branch information
ooherin authored Dec 5, 2023
2 parents dba5b5e + 883920c commit f686800
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/components/Main/Setting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ export const SettingComponent = React.forwardRef(
}
};

const changeAdminAction = (userName: string, userId: number) => {
toastColorMessage(userName + 'λ‹˜μ΄ λ°©μž₯이 λ˜μ—ˆμŠ΅λ‹ˆλ‹€.');
toastColorMessage(userId + '아이디 νšŒμ›μ—κ²Œ λ°©μž₯ κΆŒν•œμ„ λ„˜κ²ΌμŠ΅λ‹ˆλ‹€.');
const changeAdminAction = (userId: number) => {
onClose();
const formData = new FormData();
const spaceUserDTO = {
Expand All @@ -96,13 +94,12 @@ export const SettingComponent = React.forwardRef(
isAdmin: true,
};
formData.append('spaceUserDTO', JSON.stringify(spaceUserDTO));
formData.append('image', JSON.stringify(null));
userUpdateAction(formData);
};

const changeAdminHandler = (userName: string, userId: number) => {
confirmModalOpen({
AsyncAction: () => changeAdminAction(userName, userId),
AsyncAction: () => changeAdminAction(userId),
isPositiveModal: true,
descriptionMessage: `λ°©μž₯ κΆŒν•œμ„ μ£Όλ©΄ ${userList[0].userName}λ‹˜μ€ \n슀페이슀 관리 및 인원 관리λ₯Ό ν•  수 μ—†κ²Œλ©λ‹ˆλ‹€.`,
titleMessage: userName + ' λ‹˜μ—κ²Œ λ°©μž₯ κΆŒν•œμ„ μ£Όμ‹œκ² μŠ΅λ‹ˆκΉŒ?',
Expand Down
2 changes: 1 addition & 1 deletion src/constants/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const BASE_URL = import.meta.env.VITE_BASE_URL;

export const AXIOS_BASE_URL = import.meta.env.VITE_BACK_URL;

export const END_POINTS = {
export const END_POINTS = {
USER: '/user',
TOKEN: '/user/refreshToken',
MY_POST_LIST: `/user/mypost`,
Expand Down

0 comments on commit f686800

Please sign in to comment.