.
This commit is contained in:
1 parent
feeb30c6a9
commit
5286e4d1ed
13 files changed
+344
-82
No files matched your search
@@ -202,6 +202,7 @@ export interface ApiMatchScheduleItem {
|
||||
export interface ApiMatch {
|
||||
_id: string;
|
||||
communityId: string;
|
||||
shortCode?: string;
|
||||
title: string;
|
||||
description: string;
|
||||
mapId: number;
|
||||
|
||||
@@ -212,6 +212,15 @@ function QueueRankCell({
|
||||
);
|
||||
}
|
||||
|
||||
function SoloRankPrefix({ tier }: { tier?: ApiTierInfo }) {
|
||||
return (
|
||||
<span className="inline-flex shrink-0 items-center gap-1 text-[10px] font-black text-base-content/35">
|
||||
{/* <span>SOLO</span> */}
|
||||
<RankBadge tier={tier} />
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
function TierCell({ participant }: { participant: ParticipantView }) {
|
||||
const profileQuery = useUserHistoryProfile(
|
||||
participant.userId,
|
||||
@@ -1516,15 +1525,24 @@ export default function MatchDetailPage() {
|
||||
selectedManualTopTierUserIds.includes(
|
||||
participant.userId,
|
||||
);
|
||||
const soloTier =
|
||||
participant.tier?.queueType ===
|
||||
"RANKED_SOLO_5x5"
|
||||
? participant.tier
|
||||
: undefined;
|
||||
return (
|
||||
<label
|
||||
key={participant.userId}
|
||||
className="flex cursor-pointer items-center justify-between gap-3 border border-base-content/8 px-2 py-1.5 text-xs text-base-content/55 transition-colors hover:border-primary/25 hover:bg-primary/5"
|
||||
>
|
||||
<span className="min-w-0 truncate">
|
||||
{participant.gameName ?? participant.userId}
|
||||
<span className="ml-1 text-base-content/25">
|
||||
#{participant.tagLine ?? "----"}
|
||||
<span className="flex min-w-0 items-center gap-2">
|
||||
<SoloRankPrefix tier={soloTier} />
|
||||
<span className="min-w-0 truncate">
|
||||
{participant.gameName ??
|
||||
participant.userId}
|
||||
<span className="ml-1 text-base-content/25">
|
||||
#{participant.tagLine ?? "----"}
|
||||
</span>
|
||||
</span>
|
||||
</span>
|
||||
<input
|
||||
|
||||
Reference in new issue
Block a user