From 0bb1bd3199a5f0ed24b978897b96553590f39810 Mon Sep 17 00:00:00 2001 From: wnhaoo <153691178+wnhaoo@users.noreply.github.com> Date: Mon, 17 Mar 2025 02:11:04 +0900 Subject: [PATCH 1/4] =?UTF-8?q?feat:=20type=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mentorship/pages/MentorInfoView.tsx | 22 +++--- src/user/components/ProfileEdit/EditBio.tsx | 21 +++-- .../ProfileEdit/EditProfileSection.tsx | 7 +- src/user/components/ProfileEdit/EditTime.tsx | 77 +++++++++++-------- .../components/profileInfo/MenteeInfoBio.tsx | 10 +-- .../components/profileInfo/MentorInfoBio.tsx | 10 +-- .../profileInfo/MentorInfoProfile.tsx | 7 +- .../components/profileInfo/MentorInfoTime.tsx | 12 +-- src/user/menteetypes.ts | 4 +- src/user/pages/ProfileEdit/MenteeInfo.tsx | 8 +- .../pages/ProfileEdit/MenteeProfileEdit.tsx | 8 +- src/user/pages/ProfileEdit/MentorInfo.tsx | 22 +++--- .../pages/ProfileEdit/MentorProfileEdit.tsx | 19 ++--- src/user/types.ts | 43 +++++------ 14 files changed, 141 insertions(+), 129 deletions(-) diff --git a/src/mentorship/pages/MentorInfoView.tsx b/src/mentorship/pages/MentorInfoView.tsx index 406f01b..a34bec8 100644 --- a/src/mentorship/pages/MentorInfoView.tsx +++ b/src/mentorship/pages/MentorInfoView.tsx @@ -27,7 +27,8 @@ const MentorInfoView = () => { }, organization: { name: "OO주식회사", - role: "브랜드 마케팅/카피라이팅", + jobCategory: "브랜드 마케팅", + detailedJob: "카피라이팅", experience: 6, }, count: 716, @@ -36,13 +37,13 @@ const MentorInfoView = () => { filePath: "", }, introduction: { - summary: "브랜드 마케팅에 대한 모든 것을 알려드립니다.", - bio: "안녕하세요!\n저는 OO대학교 경영학과를 졸업하고 현재 XXXX에 다니고 있는 ‘바이’입니다.", + title: "브랜드 마케팅에 대한 모든 것을 알려드립니다.", + content: "안녕하세요!\n저는 OO대학교 경영학과를 졸업하고 현재 XXXX에 다니고 있는 ‘바이’입니다.", }, - availableDays: ["월", "목"], timezone: { - startTime: { period: "오전", hour: "10", minute: "00"}, - endTime: { period: "오후", hour: "18", minute: "00"}, + days: ["월", "목"], + startTime: "09:00:00", + endTime: "17:00:00", }, mentoringField: ["취업 준비", "커리어 고민"], hashtags: ["마케팅", "브랜드마케팅", "이직", "취준", "진로고민상담", "면접노하우"], @@ -98,7 +99,8 @@ const MentorInfoView = () => { { {/* 자기소개 */} {/* 선호 시간대 */} diff --git a/src/user/components/ProfileEdit/EditBio.tsx b/src/user/components/ProfileEdit/EditBio.tsx index 4baa541..486e48d 100644 --- a/src/user/components/ProfileEdit/EditBio.tsx +++ b/src/user/components/ProfileEdit/EditBio.tsx @@ -21,8 +21,8 @@ const EditBio = ({ mentorData, setMentorData, menteeData, setMenteeData }: EditB className="w-full px-5 py-4 border-[1px] border-[#D9D7E0] rounded-[10px] text-[14px] resize-none outline-none focus:border-primary-1" rows={1} value={ - mentorData?.introduction.summary || - menteeData?.introduction.summary || + mentorData?.introduction.title || + menteeData?.introduction.title || '' } onChange={(e) => { @@ -31,7 +31,7 @@ const EditBio = ({ mentorData, setMentorData, menteeData, setMenteeData }: EditB ...mentorData, introduction: { ...mentorData.introduction, - summary: e.target.value, + title: e.target.value, }, }); } else if (menteeData && setMenteeData) { @@ -39,7 +39,7 @@ const EditBio = ({ mentorData, setMentorData, menteeData, setMenteeData }: EditB ...menteeData, introduction: { ...menteeData.introduction, - summary: e.target.value, + title: e.target.value, }, }); } @@ -52,18 +52,18 @@ const EditBio = ({ mentorData, setMentorData, menteeData, setMenteeData }: EditB