From cc8956a22b99cb9fe9762caaf63887670eea5a9c Mon Sep 17 00:00:00 2001 From: Dongseok Lee Date: Mon, 17 Mar 2025 03:28:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor(DEVING-71):=20=ED=94=BC=EB=93=9C?= =?UTF-8?q?=EB=B0=B1=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(user-page)/mypage/MyPageClient.tsx | 1 - .../mypage/_features/BasicEdit.tsx | 4 +-- .../mypage/_features/BasicInfo.tsx | 16 +++++------ .../mypage/_features/ContactEdit.tsx | 4 +-- .../mypage/_features/ContactInfo.tsx | 4 +-- .../mypage/_features/PasswordEdit.tsx | 28 +++++++++++-------- .../mypage/_features/PasswordInfo.tsx | 4 +-- .../mypage/_features/TechStackEdit.tsx | 4 +-- .../mypage/_features/TechStackInfo.tsx | 2 +- src/hooks/mutations/useMyPageMutation.tsx | 22 +++++++++++---- src/types/mypageTypes.ts | 11 ++++++++ 11 files changed, 63 insertions(+), 37 deletions(-) diff --git a/src/app/(user-page)/mypage/MyPageClient.tsx b/src/app/(user-page)/mypage/MyPageClient.tsx index 78f2b99c..de9136c7 100644 --- a/src/app/(user-page)/mypage/MyPageClient.tsx +++ b/src/app/(user-page)/mypage/MyPageClient.tsx @@ -7,7 +7,6 @@ import { import { useQueryClient } from '@tanstack/react-query'; import { useRouter, useSearchParams } from 'next/navigation'; import { useCallback, useEffect, useRef, useState } from 'react'; -import { getProfile } from 'service/api/mypageProfile'; import { TAB_TYPES } from '../../../constants/mypage/mypageConstant'; // 컴포넌트 임포트 diff --git a/src/app/(user-page)/mypage/_features/BasicEdit.tsx b/src/app/(user-page)/mypage/_features/BasicEdit.tsx index 4bd9ae50..8981dee3 100644 --- a/src/app/(user-page)/mypage/_features/BasicEdit.tsx +++ b/src/app/(user-page)/mypage/_features/BasicEdit.tsx @@ -335,14 +335,14 @@ const BasicEdit = ({ onEditComplete }: BasicEditProps) => { diff --git a/src/app/(user-page)/mypage/_features/PasswordInfo.tsx b/src/app/(user-page)/mypage/_features/PasswordInfo.tsx index c5eb715b..a34b8031 100644 --- a/src/app/(user-page)/mypage/_features/PasswordInfo.tsx +++ b/src/app/(user-page)/mypage/_features/PasswordInfo.tsx @@ -19,8 +19,8 @@ const PasswordInfo = ({ onEnableEdit }: PasswordInfoProps) => { } return ( -
-
+
+
비밀번호
diff --git a/src/app/(user-page)/mypage/_features/TechStackEdit.tsx b/src/app/(user-page)/mypage/_features/TechStackEdit.tsx index 5223cb7f..924c9ac8 100644 --- a/src/app/(user-page)/mypage/_features/TechStackEdit.tsx +++ b/src/app/(user-page)/mypage/_features/TechStackEdit.tsx @@ -108,14 +108,14 @@ const TechStackEdit = ({