From 7d319b81f0dd32dc3aed2c9bb109adac048dfd16 Mon Sep 17 00:00:00 2001 From: ParkSohyunee Date: Sat, 17 Feb 2024 00:52:23 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=8B=A4?= =?UTF-8?q?=ED=8C=A8=EC=8B=9C,=20=ED=86=A0=EC=8A=A4=ED=8A=B8=EC=97=90?= =?UTF-8?q?=EB=9F=AC=20=EB=A9=94=EC=84=B8=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/account/_components/LogoutModal.tsx | 2 +- src/lib/constants/toastMessage.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/account/_components/LogoutModal.tsx b/src/app/account/_components/LogoutModal.tsx index 003eebff..3891d636 100644 --- a/src/app/account/_components/LogoutModal.tsx +++ b/src/app/account/_components/LogoutModal.tsx @@ -37,7 +37,7 @@ export default function LogoutModal({ handleSetOff }: LogOutModalProps) { } } catch (error) { if (error instanceof AxiosError) { - console.error(error.message); + toasting({ type: 'error', txt: toastMessage.ko.loggedOutError }); } } }; diff --git a/src/lib/constants/toastMessage.ts b/src/lib/constants/toastMessage.ts index 8a6b5641..95035334 100644 --- a/src/lib/constants/toastMessage.ts +++ b/src/lib/constants/toastMessage.ts @@ -4,6 +4,7 @@ const toastMessage = { ko: { requiredLogin: '로그인이 필요해요.', loggedOut: '로그아웃 되었어요.', + loggedOutError: '로그아웃에 실패했어요. 다시 시도해주세요.🥲', limitFollow: `최대 ${MAX_FOLLOWING.toLocaleString('ko-KR')}명까지 팔로우할 수 있어요.`, uploadImageError: '이미지를 업로드에 실패했어요. 다시 업로드해주세요.🥲', createListError: '리스트 생성에 실패했어요. 다시 시도해주세요.🥲', @@ -14,6 +15,7 @@ const toastMessage = { en: { requiredLogin: 'Login is required.', loggedOut: 'Logged out successfully.', + loggedOutError: 'Failed to log out. Please try again.🥲', limitFollow: `Following exceeds the limit of ${MAX_FOLLOWING.toLocaleString('en-US')}.`, uploadImageError: 'Failed to upload the image. Please try again.🥲', createListError: 'Failed to create the list. Please try again.🥲',