Skip to content

Commit

Permalink
๐Ÿ“fix : ๋ฐฉ์žฅ ๊ถŒํ•œ ์ฃผ๊ธฐ ๋ฒ„๊ทธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
ooherin committed Dec 5, 2023
1 parent ddaa528 commit cf92359
Showing 1 changed file with 2 additions and 5 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 @@ -80,9 +80,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 @@ -91,13 +89,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

0 comments on commit cf92359

Please sign in to comment.