Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions public/image/F의_대화.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 26 additions & 0 deletions public/image/N의_대화.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ interface ProfileProps {
topicData?: {
chatTitle: string;
description: string;
image: string;
};
}
const Profile = ({
Expand Down Expand Up @@ -64,8 +65,7 @@ const Profile = ({
if (mode === "friend" && info) {
return `/public/image/${info.mbti}_profile.png`;
} else if (mode === "topic" && topicData) {
//FIXME: 디자인 정해지면 수정
return "/icon/starbubble.svg";
return topicData.image;
}
return "";
};
Expand Down
9 changes: 6 additions & 3 deletions src/components/TopicProfileContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ import Profile from "@/components/Profile";
type TopicData = {
chatTitle: string;
description: string;
image: string;
};

const topicData: TopicData[] = [
{
chatTitle: "T의 대화",
description: "mbti t인사람들 모임"
chatTitle: "N의 대화",
description: "망상력 N% 대화방",
image: "/image/N의_대화.svg"
},
{
chatTitle: "F의 대화",
description: "mbti f인사람들 모임"
description: "F 감성 대화방",
image: "/image/F의_대화.svg"
}
];

Expand Down