diff --git a/src/pages/Feed/components/NewIdeaCardListSection/NewIdeaCardListSection.tsx b/src/pages/Feed/components/NewIdeaCardListSection/NewIdeaCardListSection.tsx
index 4b02136f..9fd64aad 100644
--- a/src/pages/Feed/components/NewIdeaCardListSection/NewIdeaCardListSection.tsx
+++ b/src/pages/Feed/components/NewIdeaCardListSection/NewIdeaCardListSection.tsx
@@ -39,7 +39,7 @@ const CardList = () => {
const profile = {
profileImageUrl: idea.memberResponse.profileImageUrl,
nickname: idea.memberResponse.nickname,
- skills: idea.memberResponse.skills,
+ mainSkill: idea.memberResponse.mainSkill,
isBookmarked: idea.isBookmarked,
createdAt: idea.createdAt,
};
diff --git a/src/pages/Feed/hooks/queries/useBestIdeasQuery.ts b/src/pages/Feed/hooks/queries/useBestIdeasQuery.ts
index 673a65e9..be96eba1 100644
--- a/src/pages/Feed/hooks/queries/useBestIdeasQuery.ts
+++ b/src/pages/Feed/hooks/queries/useBestIdeasQuery.ts
@@ -1,4 +1,4 @@
-import { useSuspenseInfiniteQuery, useSuspenseQuery } from '@tanstack/react-query';
+import { useSuspenseInfiniteQuery } from '@tanstack/react-query';
import { http } from '../../../../api/http';
import { BestIdea } from '../../types';
diff --git a/src/pages/Feed/types/index.ts b/src/pages/Feed/types/index.ts
index 14d0df08..3237a8dc 100644
--- a/src/pages/Feed/types/index.ts
+++ b/src/pages/Feed/types/index.ts
@@ -9,7 +9,7 @@ type MemberResponse = {
id: number;
profileImageUrl: string;
nickname: string;
- skills: string[];
+ mainSkill: string;
};
export type Idea = {
diff --git a/src/pages/Profile/More.page.tsx b/src/pages/Profile/More.page.tsx
index cbca96a0..5b534bb5 100644
--- a/src/pages/Profile/More.page.tsx
+++ b/src/pages/Profile/More.page.tsx
@@ -38,7 +38,7 @@ const More = () => {
};
const handleDeleteAccount = async () => {
- const isDelete = await openConfirm({ content: '정말 탈퇴하시겠습니까?' });
+ const isDelete = await openConfirm({ content: '정말 탈퇴하시겠습니까? 회원 정보가 즉시 삭제됩니다.' });
if (!isDelete) return;
deleteAccount();
diff --git a/src/pages/Profile/components/MyProfile/BookmarkSection.tsx b/src/pages/Profile/components/MyProfile/BookmarkSection.tsx
index d6f17c66..74d25650 100644
--- a/src/pages/Profile/components/MyProfile/BookmarkSection.tsx
+++ b/src/pages/Profile/components/MyProfile/BookmarkSection.tsx
@@ -36,11 +36,10 @@ const BookmarkSection = () => {
const profile = {
profileImageUrl: idea.memberResponse.profileImageUrl,
nickname: idea.memberResponse.nickname,
- skills: idea.memberResponse.skills,
+ mainSkill: idea.memberResponse.mainSkill,
isBookmarked: idea.isBookmarked,
createdAt: idea.createdAt,
};
-
const content = {
canEdit: isMine,
branches: idea.branches,
diff --git a/src/pages/Profile/types/index.ts b/src/pages/Profile/types/index.ts
index a66d76ae..f00713e2 100644
--- a/src/pages/Profile/types/index.ts
+++ b/src/pages/Profile/types/index.ts
@@ -32,7 +32,7 @@ export interface MemberResponse {
id: number;
profileImageUrl: string;
nickname: string;
- skills: string[];
+ mainSkill: string;
}
export interface BookmarkedIdea {
id: number;
diff --git a/src/pages/WriteEdit/hooks/mutations/usePutIdea.ts b/src/pages/WriteEdit/hooks/mutations/usePutIdea.ts
index 83b0eda5..2edbc718 100644
--- a/src/pages/WriteEdit/hooks/mutations/usePutIdea.ts
+++ b/src/pages/WriteEdit/hooks/mutations/usePutIdea.ts
@@ -4,9 +4,9 @@ import { useNavigate } from 'react-router-dom';
import { http } from '../../../../api/http';
-import type { PutIdeaRequest } from '../../types';
+import type { PutIdeasRequest } from '../../types';
-const _putIdea = ({ ideaId, idea }: { ideaId: number; idea: PutIdeaRequest }) => {
+const _putIdea = ({ ideaId, idea }: { ideaId: number; idea: PutIdeasRequest }) => {
return http.put(`/ideas/${ideaId}`, idea);
};
diff --git a/src/pages/WriteEdit/types/index.ts b/src/pages/WriteEdit/types/index.ts
index ce34c2b9..2c93722a 100644
--- a/src/pages/WriteEdit/types/index.ts
+++ b/src/pages/WriteEdit/types/index.ts
@@ -1,5 +1,5 @@
// 글쓰기 요청 body 타입
-export type PostIdeasRequest = {
+export type PutIdeasRequest = {
title: string; // 제목
introduce: string; // 소개
branchIds: number[]; // 분야
diff --git a/src/pages/components/NewIdeaCard/NewIdeaCardContext.ts b/src/pages/components/NewIdeaCard/NewIdeaCardContext.ts
index 602ca83f..821b0e96 100644
--- a/src/pages/components/NewIdeaCard/NewIdeaCardContext.ts
+++ b/src/pages/components/NewIdeaCard/NewIdeaCardContext.ts
@@ -5,7 +5,7 @@ export interface NewIdeaCardContextType {
profile?: {
profileImageUrl: string;
nickname: string;
- skills: string[];
+ mainSkill: string;
isBookmarked: boolean;
createdAt: string;
};
diff --git a/src/pages/components/NewIdeaCard/compound/Profile/Profile.tsx b/src/pages/components/NewIdeaCard/compound/Profile/Profile.tsx
index 13d40d99..86b8ef12 100644
--- a/src/pages/components/NewIdeaCard/compound/Profile/Profile.tsx
+++ b/src/pages/components/NewIdeaCard/compound/Profile/Profile.tsx
@@ -10,7 +10,7 @@ import {
Text,
TextDivider,
} from 'concept-be-design-system';
-import { Fragment, MouseEventHandler } from 'react';
+import { MouseEventHandler } from 'react';
import { useDeleteBookmarkIdea } from '../../../../Feed/hooks/mutations/useDeleteBookmarkIdea';
import { usePostBookmarkIdea } from '../../../../Feed/hooks/mutations/usePostBookmarkIdea';
@@ -23,7 +23,7 @@ type Props = {
const Profile = ({ onClickProfile }: Props) => {
const id = useIdeaIdContext();
- const { profileImageUrl, nickname, skills, isBookmarked, createdAt } = useProfileContext();
+ const { profileImageUrl, nickname, mainSkill, isBookmarked, createdAt } = useProfileContext();
const { postBookmarkIdea } = usePostBookmarkIdea();
const { deleteBookmarkIdea } = useDeleteBookmarkIdea();
@@ -56,14 +56,12 @@ const Profile = ({ onClickProfile }: Props) => {
- {skills.map((skill) => (
-
-
- {skill}
-
-
-
- ))}
+
+ {mainSkill}
+
+
+
+
{formatCommentDate(createdAt)}