@@ -189,7 +189,7 @@ function ChatRoom({ chatRoomId, postTitle, onBack }: ChatRoomProps) {
189189 const result = await response . json ( ) ;
190190 const serverParticipants : ServerChatParticipant [ ] = result || [ ] ;
191191 const mappedParticipants : ChatParticipant [ ] = serverParticipants . map ( ( p ) => ( {
192- id : p . memberId ,
192+ id : p . member_id ,
193193 name : p . member_name || "이름" ,
194194 image : p . member_image ,
195195 status : p . chat_member_status || "상태" ,
@@ -421,28 +421,10 @@ function ChatRoom({ chatRoomId, postTitle, onBack }: ChatRoomProps) {
421421 < div className = "absolute top-0 right-0 w-64 md:w-72 lg:w-80 h-full bg-white/95 backdrop-blur-sm flex flex-col overflow-y-auto transition-all duration-300 ease-in-out shadow-lg z-10 border-l border-[#e4e6eb]" >
422422 < div className = "p-4 border-b border-[#e4e6eb] flex justify-between items-center bg-gradient-to-r from-[#f0f2f5] to-white" >
423423 < h3 className = "font-bold text-md text-[#1877f2]" > 참여중인 멤버</ h3 >
424- < button
425- onClick = { toggleParticipantsList }
426- className = "text-[#65676B] hover:text-[#1877f2] transition-colors"
427- aria-label = "Close participants list"
428- >
429- < svg
430- xmlns = "http://www.w3.org/2000/svg"
431- width = "18"
432- height = "18"
433- viewBox = "0 0 24 24"
434- fill = "none"
435- stroke = "currentColor"
436- strokeWidth = "2"
437- strokeLinecap = "round"
438- strokeLinejoin = "round"
439- >
440- < line x1 = "18" y1 = "6" x2 = "6" y2 = "18" > </ line > < line x1 = "6" y1 = "6" x2 = "18" y2 = "18" > </ line >
441- </ svg >
442- </ button >
443424 </ div >
444425
445- { currentUserParticipant && (
426+ { /* TODO: 상태 변경 기능 보수 */ }
427+ { /* {currentUserParticipant && (
446428 <div className="p-4 border-b border-[#e4e6eb] bg-[#f7f9fb]">
447429 <div className="text-xs font-bold uppercase text-[#65676B] mb-2">내 상태</div>
448430 <select
@@ -455,7 +437,7 @@ function ChatRoom({ chatRoomId, postTitle, onBack }: ChatRoomProps) {
455437 <option value="LEFT">LEFT (나감)</option>
456438 </select>
457439 </div>
458- ) }
440+ )} */ }
459441
460442 < div className = "flex-grow p-2" >
461443 { loadingParticipants && (
@@ -490,7 +472,10 @@ function ChatRoom({ chatRoomId, postTitle, onBack }: ChatRoomProps) {
490472 key = { participant . id }
491473 className = "flex items-center justify-between p-2 hover:bg-[#f0f2f5] rounded-md transition-colors"
492474 >
493- < div className = "flex items-center" >
475+ < button
476+ onClick = { ( ) => window . location . href = `/mypage/${ participant . id } ` }
477+ className = "flex items-center w-full text-left hover:bg-[#f0f2f5] rounded-md p-1 transition-colors cursor-pointer"
478+ >
494479 { participant . image ? (
495480 < img
496481 src = { participant . image || "/placeholder.svg" }
@@ -517,30 +502,7 @@ function ChatRoom({ chatRoomId, postTitle, onBack }: ChatRoomProps) {
517502 : "상태 없음" }
518503 </ div >
519504 </ div >
520- </ div >
521- { participant . id !== currentMemberId && (
522- < button
523- onClick = { ( ) => handleChangeParticipantState ( participant . id ) }
524- className = "text-xs bg-white hover:bg-[#f0f2f5] text-[#1877f2] border border-[#e4e6eb] py-1 px-2 rounded-md transition-colors"
525- aria-label = { `${ participant . name || "참가자" } 님 상태 변경` }
526- >
527- < svg
528- xmlns = "http://www.w3.org/2000/svg"
529- width = "12"
530- height = "12"
531- viewBox = "0 0 24 24"
532- fill = "none"
533- stroke = "currentColor"
534- strokeWidth = "2"
535- strokeLinecap = "round"
536- strokeLinejoin = "round"
537- className = "inline"
538- >
539- < circle cx = "12" cy = "12" r = "1" > </ circle > < circle cx = "19" cy = "12" r = "1" > </ circle >
540- < circle cx = "5" cy = "12" r = "1" > </ circle >
541- </ svg >
542- </ button >
543- ) }
505+ </ button >
544506 </ div >
545507 ) ) }
546508 </ div >
0 commit comments