File tree Expand file tree Collapse file tree 4 files changed +86
-5
lines changed
Expand file tree Collapse file tree 4 files changed +86
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ interface ProfileProps {
1212 topicData ?: {
1313 chatTitle : string ;
1414 description : string ;
15+ image : string ;
1516 } ;
1617}
1718const 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 } ;
Original file line number Diff line number Diff line change @@ -3,16 +3,19 @@ import Profile from "@/components/Profile";
33type TopicData = {
44 chatTitle : string ;
55 description : string ;
6+ image : string ;
67} ;
78
89const 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
You can’t perform that action at this time.
0 commit comments