diff --git a/apps/web/src/pages/MatchDetailPage.tsx b/apps/web/src/pages/MatchDetailPage.tsx index 02885f87..af39236a 100644 --- a/apps/web/src/pages/MatchDetailPage.tsx +++ b/apps/web/src/pages/MatchDetailPage.tsx @@ -503,6 +503,120 @@ function TeamParticipantMobileRow({ ); } +function ParticipantMobileRow({ + participant, + admin, +}: { + participant: ParticipantView; + admin?: ParticipantRowAdmin; +}) { + const { data: ddragon } = useDdragonManifest(); + const location = useLocation(); + const historyBackTo = `${location.pathname}${location.search}${location.hash}`; + const [confirmingRemove, setConfirmingRemove] = useState(false); + + const handleMainChange = (next: Position) => { + if (!admin) return; + const sub = + next === participant.subPosition + ? participant.mainPosition + : participant.subPosition; + admin.onChangePositions(participant.userId, next, sub); + }; + const handleSubChange = (next: Position) => { + if (!admin) return; + const main = + next === participant.mainPosition + ? participant.subPosition + : participant.mainPosition; + admin.onChangePositions(participant.userId, main, next); + }; + + return ( +
+
+ +
+ +
+
+ + {participant.summonerName} + + + #{participant.tag} + {participant.excluded && ( + + 제외 + + )} + +
+ + + +
+ {admin && ( +
+ + + / + + + {confirmingRemove ? ( + + + + + ) : ( + + )} +
+ )} +
+ ); +} + function ParticipantTable({ participants, maxParticipants, @@ -669,7 +783,36 @@ function ParticipantTable({ -
+
+
+ 소환사 + 현재 티어 + 포지션 +
+ {filteredParticipants.length > 0 ? ( + filteredParticipants.map((participant) => ( + + )) + ) : ( +
+ 조건에 맞는 참가자가 없습니다. +
+ )} +
+
@@ -733,7 +876,7 @@ function ParticipantTable({ ) : (
조건에 맞는 참가자가 없습니다.