Skip to content

Commit 46e0d91

Browse files
committed
feat: 오픈채팅방 메인 이미지 추가 작업
1 parent 4bf1e1e commit 46e0d91

File tree

4 files changed

+86
-5
lines changed

4 files changed

+86
-5
lines changed

public/image/F의_대화.svg

Lines changed: 52 additions & 0 deletions
Loading

public/image/N의_대화.svg

Lines changed: 26 additions & 0 deletions
Loading

src/components/Profile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface ProfileProps {
1212
topicData?: {
1313
chatTitle: string;
1414
description: string;
15+
image: string;
1516
};
1617
}
1718
const Profile = ({
@@ -64,8 +65,7 @@ const Profile = ({
6465
if (mode === "friend" && info) {
6566
return `/public/image/${info.mbti}_profile.png`;
6667
} else if (mode === "topic" && topicData) {
67-
//FIXME: 디자인 정해지면 수정
68-
return "/icon/starbubble.svg";
68+
return topicData.image;
6969
}
7070
return "";
7171
};

src/components/TopicProfileContainer.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,19 @@ import Profile from "@/components/Profile";
33
type TopicData = {
44
chatTitle: string;
55
description: string;
6+
image: string;
67
};
78

89
const topicData: TopicData[] = [
910
{
10-
chatTitle: "T의 대화",
11-
description: "mbti t인사람들 모임"
11+
chatTitle: "N의 대화",
12+
description: "망상력 N% 대화방",
13+
image: "/image/N의_대화.svg"
1214
},
1315
{
1416
chatTitle: "F의 대화",
15-
description: "mbti f인사람들 모임"
17+
description: "F 감성 대화방",
18+
image: "/image/F의_대화.svg"
1619
}
1720
];
1821

0 commit comments

Comments
 (0)