feat(web): refresh the app with Astryx and coral branding
This commit is contained in:
1 parent
f649490cd2
commit
da7b502936
140 files changed
+4531
-2368
No files matched your search
@@ -4,7 +4,24 @@ import type {
|
||||
MatchDetailResponse,
|
||||
MatchParticipantView,
|
||||
} from "@lolympus/contracts";
|
||||
import { ChevronLeft, Search, X } from "lucide-react";
|
||||
import {
|
||||
CalendarDays,
|
||||
Map as MapIcon,
|
||||
Search,
|
||||
Users,
|
||||
X,
|
||||
} from "lucide-react";
|
||||
import {
|
||||
EmptyNote,
|
||||
ErrorNote,
|
||||
LoadingNote,
|
||||
MetaDot,
|
||||
PageBody,
|
||||
PageHero,
|
||||
Pill,
|
||||
PlainPage,
|
||||
type PillTone,
|
||||
} from "../ui";
|
||||
import {
|
||||
Link,
|
||||
useLocation,
|
||||
@@ -35,7 +52,6 @@ import { RankBadge } from "../components/RankBadge";
|
||||
import { CompetitionAdminControls } from "../components/competition/CompetitionAdminControls";
|
||||
import { CompetitionResults } from "../components/competition/CompetitionResults";
|
||||
import { MatchDetailTabBar } from "../components/competition/MatchDetailTabBar";
|
||||
import { MATCH_PAGE_MAX_WIDTH_CLASS } from "../components/competition/competition-display-layout";
|
||||
import {
|
||||
createMatchDetailTabSearchParams,
|
||||
createMatchDetailTabs,
|
||||
@@ -61,6 +77,7 @@ import type {
|
||||
Position,
|
||||
} from "../api/types";
|
||||
|
||||
import { Btn } from "../ui/Btn";
|
||||
type CaptainSelectionSlot = {
|
||||
teamIndex: number;
|
||||
};
|
||||
@@ -295,28 +312,20 @@ function TierCell({ participant }: { participant: ParticipantView }) {
|
||||
);
|
||||
}
|
||||
|
||||
function statusBadge(status: MatchDetailView["status"]) {
|
||||
function statusBadge(status: MatchDetailView["status"]): {
|
||||
label: string;
|
||||
tone: PillTone;
|
||||
live?: boolean;
|
||||
} {
|
||||
switch (status) {
|
||||
case "recruiting":
|
||||
return {
|
||||
label: "모집 중",
|
||||
cls: "bg-success/15 text-success border-success/20",
|
||||
};
|
||||
return { label: "모집 중", tone: "live", live: true };
|
||||
case "team-built":
|
||||
return {
|
||||
label: "팀빌딩 완료",
|
||||
cls: "bg-warning/15 text-warning border-warning/20",
|
||||
};
|
||||
return { label: "팀빌딩 완료", tone: "gold" };
|
||||
case "in-progress":
|
||||
return {
|
||||
label: "진행 중",
|
||||
cls: "bg-info/15 text-info border-info/20",
|
||||
};
|
||||
return { label: "진행 중", tone: "accent", live: true };
|
||||
case "finished":
|
||||
return {
|
||||
label: "종료",
|
||||
cls: "bg-base-content/8 text-base-content/40 border-base-content/10",
|
||||
};
|
||||
return { label: "종료", tone: "ink" };
|
||||
}
|
||||
}
|
||||
|
||||
@@ -765,14 +774,13 @@ function AdminAddParticipantModal({
|
||||
카카오 닉네임 또는 Riot ID로 커뮤니티 유저를 찾습니다.
|
||||
</p>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-ghost btn-xs h-8 min-h-8 w-8 p-0"
|
||||
<Btn
|
||||
variant="ghost" size="sm"
|
||||
aria-label="참여자 추가 닫기"
|
||||
onClick={onClose}
|
||||
>
|
||||
<X size={15} aria-hidden="true" />
|
||||
</button>
|
||||
</Btn>
|
||||
</div>
|
||||
|
||||
<div className="space-y-3 px-4 py-4">
|
||||
@@ -795,7 +803,7 @@ function AdminAddParticipantModal({
|
||||
}}
|
||||
aria-label="참여자 검색"
|
||||
placeholder="카카오 닉네임 또는 Riot ID (GameName#TagLine)"
|
||||
className="min-w-0 flex-1 bg-transparent text-sm text-base-content outline-none placeholder:text-base-content/25"
|
||||
className="lts-input min-w-0 flex-1 outline-none"
|
||||
/>
|
||||
</span>
|
||||
</label>
|
||||
@@ -883,7 +891,7 @@ function AdminAddParticipantModal({
|
||||
[candidate.userId]: event.target.value,
|
||||
}))
|
||||
}
|
||||
className="h-8 min-w-0 flex-1 border border-base-content/10 bg-base-100 px-2 text-xs text-base-content focus:border-primary/30 focus:outline-none"
|
||||
className="lts-select min-w-0 flex-1"
|
||||
>
|
||||
{candidate.riotAccounts.map((riotAccount) => (
|
||||
<option
|
||||
@@ -919,7 +927,7 @@ function AdminAddParticipantModal({
|
||||
event.target.value as Position,
|
||||
)
|
||||
}
|
||||
className="mt-1 h-8 w-full border border-base-content/10 bg-base-100 px-2 text-xs text-base-content focus:border-primary/30 focus:outline-none"
|
||||
className="lts-select mt-1 w-full"
|
||||
>
|
||||
{POSITION_ORDER.map((position) => (
|
||||
<option key={position} value={position}>
|
||||
@@ -939,7 +947,7 @@ function AdminAddParticipantModal({
|
||||
event.target.value as Position,
|
||||
)
|
||||
}
|
||||
className="mt-1 h-8 w-full border border-base-content/10 bg-base-100 px-2 text-xs text-base-content focus:border-primary/30 focus:outline-none"
|
||||
className="lts-select mt-1 w-full"
|
||||
>
|
||||
{POSITION_ORDER.map((position) => (
|
||||
<option key={position} value={position}>
|
||||
@@ -950,8 +958,7 @@ function AdminAddParticipantModal({
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
<Btn
|
||||
disabled={Boolean(disabledReason) || isAdding}
|
||||
onClick={() =>
|
||||
onAddParticipant({
|
||||
@@ -964,10 +971,10 @@ function AdminAddParticipantModal({
|
||||
),
|
||||
})
|
||||
}
|
||||
className="btn btn-primary btn-sm h-9 min-h-9 w-full text-xs disabled:opacity-40"
|
||||
variant="primary" className="w-full"
|
||||
>
|
||||
{isAdding ? "추가 중..." : "추가"}
|
||||
</button>
|
||||
</Btn>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
@@ -1071,23 +1078,21 @@ function ParticipantTable({
|
||||
참가자 ({participants.length}/{maxParticipants})
|
||||
</h3>
|
||||
<div className="flex flex-wrap items-center justify-end gap-2">
|
||||
<button
|
||||
type="button"
|
||||
<Btn
|
||||
onClick={onJoin}
|
||||
disabled={!canJoin || joined || isJoining}
|
||||
className="btn btn-primary btn-xs px-4 text-xs font-semibold disabled:opacity-40"
|
||||
variant="primary" size="sm"
|
||||
>
|
||||
{joined ? "참가 완료" : isJoining ? "신청 중..." : "참가 신청"}
|
||||
</button>
|
||||
</Btn>
|
||||
{canManage && (
|
||||
<button
|
||||
type="button"
|
||||
<Btn
|
||||
onClick={onOpenAddParticipant}
|
||||
disabled={participants.length >= maxParticipants}
|
||||
className="btn btn-outline btn-xs px-3 text-xs font-semibold disabled:opacity-40"
|
||||
variant="secondary" size="sm"
|
||||
>
|
||||
참여자 추가
|
||||
</button>
|
||||
</Btn>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -1133,7 +1138,7 @@ function ParticipantTable({
|
||||
})}
|
||||
</div>
|
||||
<select
|
||||
className="h-8 w-32 shrink-0 border border-base-content/10 bg-base-100 px-2 text-xs text-base-content focus:border-primary/30 focus:outline-none"
|
||||
className="lts-select w-32 shrink-0"
|
||||
value={tierFilter}
|
||||
onChange={(event) => setTierFilter(event.target.value)}
|
||||
>
|
||||
@@ -1147,16 +1152,15 @@ function ParticipantTable({
|
||||
</select>
|
||||
<div className="ml-auto flex min-w-[6.5rem] shrink-0 items-center justify-end gap-1 whitespace-nowrap text-xs text-base-content/35">
|
||||
{isFiltered && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-ghost btn-xs h-8 min-h-8 shrink-0 px-1 text-xs text-base-content/40"
|
||||
<Btn
|
||||
variant="ghost" size="sm" className="shrink-0"
|
||||
onClick={() => {
|
||||
setPositionFilter(ALL_PARTICIPANT_FILTER);
|
||||
setTierFilter(ALL_PARTICIPANT_FILTER);
|
||||
}}
|
||||
>
|
||||
초기화
|
||||
</button>
|
||||
</Btn>
|
||||
)}
|
||||
<span className="w-10 shrink-0 text-right tabular-nums">
|
||||
{filteredParticipants.length}/{participants.length}명
|
||||
@@ -1759,22 +1763,25 @@ export default function MatchDetailPage() {
|
||||
|
||||
if (matchQuery.isLoading) {
|
||||
return (
|
||||
<main className="max-w-5xl mx-auto px-4 py-20 text-center">
|
||||
<span className="text-sm text-base-content/40">
|
||||
매치 정보를 불러오는 중...
|
||||
</span>
|
||||
</main>
|
||||
<PlainPage>
|
||||
<LoadingNote label="내전 정보를 불러오는 중" />
|
||||
</PlainPage>
|
||||
);
|
||||
}
|
||||
|
||||
if (matchQuery.error || !matchQuery.data) {
|
||||
return (
|
||||
<main className="max-w-5xl mx-auto px-4 py-20 text-center">
|
||||
<h2 className="text-lg font-bold mb-2">내전을 찾을 수 없습니다</h2>
|
||||
<Link to="/" className="btn btn-ghost btn-sm mt-4">
|
||||
홈으로 돌아가기
|
||||
</Link>
|
||||
</main>
|
||||
<PlainPage>
|
||||
<EmptyNote
|
||||
title="내전을 찾을 수 없습니다"
|
||||
description="주소가 바뀌었거나 삭제된 내전일 수 있습니다."
|
||||
action={
|
||||
<Btn to="/" variant="secondary">
|
||||
내전 목록으로
|
||||
</Btn>
|
||||
}
|
||||
/>
|
||||
</PlainPage>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1888,88 +1895,74 @@ export default function MatchDetailPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<main
|
||||
className={`mx-auto px-4 py-6 sm:px-6 ${
|
||||
MATCH_PAGE_MAX_WIDTH_CLASS
|
||||
}`}
|
||||
>
|
||||
<Link
|
||||
to="/"
|
||||
className="inline-flex items-center gap-1 text-xs text-base-content/40 hover:text-base-content transition-colors mb-5"
|
||||
>
|
||||
<ChevronLeft className="h-3.5 w-3.5" aria-hidden="true" />
|
||||
목록으로
|
||||
</Link>
|
||||
|
||||
<div className="mb-6 pb-5 border-b border-base-content/8">
|
||||
<div className="flex items-center gap-2.5 flex-wrap mb-2">
|
||||
<h1 className="text-xl sm:text-2xl font-bold text-base-content leading-tight">
|
||||
{match.title}
|
||||
</h1>
|
||||
<span
|
||||
className={`inline-flex items-center text-xs font-semibold px-1.5 py-0.5 border ${si.cls}`}
|
||||
>
|
||||
<>
|
||||
<PageHero
|
||||
crumbs={[{ label: "내전", to: "/" }, { label: match.title }]}
|
||||
title={match.title}
|
||||
badges={
|
||||
<Pill tone={si.tone} dot={si.live} pulse={si.live}>
|
||||
{si.label}
|
||||
</span>
|
||||
</div>
|
||||
<p className="text-sm text-base-content/50 mb-2.5">
|
||||
{match.description}
|
||||
</p>
|
||||
<div className="flex items-center gap-3 text-xs text-base-content/40 flex-wrap">
|
||||
<span>
|
||||
{match.date} {match.time}
|
||||
</span>
|
||||
<span className="text-base-content/15">|</span>
|
||||
<span>
|
||||
{match.participants.length}/{match.maxParticipants}명
|
||||
</span>
|
||||
<span className="text-base-content/15">|</span>
|
||||
<span className="inline-flex items-center text-xs px-1.5 py-0.5 border border-base-content/10 text-base-content/40">
|
||||
{match.map}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</Pill>
|
||||
}
|
||||
meta={
|
||||
<>
|
||||
<span className="inline-flex items-center gap-1.5">
|
||||
<CalendarDays className="size-4" aria-hidden="true" />
|
||||
{match.date} {match.time}
|
||||
</span>
|
||||
<MetaDot />
|
||||
<span className="inline-flex items-center gap-1.5">
|
||||
<MapIcon className="size-4" aria-hidden="true" />
|
||||
{match.map}
|
||||
</span>
|
||||
<MetaDot />
|
||||
<span className="tabular inline-flex items-center gap-1.5">
|
||||
<Users className="size-4" aria-hidden="true" />
|
||||
<span>
|
||||
<strong className="text-on-ink">
|
||||
{match.participants.length}
|
||||
</strong>
|
||||
/{match.maxParticipants}명
|
||||
</span>
|
||||
</span>
|
||||
</>
|
||||
}
|
||||
description={match.description || undefined}
|
||||
actions={
|
||||
showAuctionLink ? (
|
||||
<Btn to={`/match/${match.id}/auction`} variant="primary" size="lg">
|
||||
경매 보기
|
||||
</Btn>
|
||||
) : undefined
|
||||
}
|
||||
/>
|
||||
<PageBody>
|
||||
{joinMatchMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{joinMatchMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={joinMatchMutation.error.message} />
|
||||
)}
|
||||
|
||||
{startAuctionMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{startAuctionMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={startAuctionMutation.error.message} />
|
||||
)}
|
||||
|
||||
{removeParticipantMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{removeParticipantMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={removeParticipantMutation.error.message} />
|
||||
)}
|
||||
|
||||
{updateParticipantMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{updateParticipantMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={updateParticipantMutation.error.message} />
|
||||
)}
|
||||
|
||||
{pollTournamentResultMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{pollTournamentResultMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={pollTournamentResultMutation.error.message} />
|
||||
)}
|
||||
|
||||
{collectResultByWindowMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{collectResultByWindowMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={collectResultByWindowMutation.error.message} />
|
||||
)}
|
||||
|
||||
{collectResultByRiotMatchMutation.error instanceof Error && (
|
||||
<div className="mb-4 border border-error/20 bg-error/10 px-4 py-3 text-sm text-error">
|
||||
{collectResultByRiotMatchMutation.error.message}
|
||||
</div>
|
||||
<ErrorNote className="mb-4" title="요청을 처리하지 못했습니다" description={collectResultByRiotMatchMutation.error.message} />
|
||||
)}
|
||||
|
||||
{usesTabbedLayout && activeMatchTab && (
|
||||
@@ -2181,12 +2174,12 @@ export default function MatchDetailPage() {
|
||||
</div>
|
||||
|
||||
{showAuctionLink ? (
|
||||
<Link
|
||||
<Btn
|
||||
to={`/match/${match.id}/auction`}
|
||||
className="btn btn-primary btn-sm px-5 text-xs"
|
||||
variant="primary"
|
||||
>
|
||||
경매 페이지 열기
|
||||
</Link>
|
||||
</Btn>
|
||||
) : (
|
||||
<div className="space-y-3">
|
||||
{captainSlots.length > 0 ? (
|
||||
@@ -2203,7 +2196,7 @@ export default function MatchDetailPage() {
|
||||
{teamIndexLabel(slot.teamIndex)} 팀장
|
||||
<div className="mt-1 grid grid-cols-[minmax(0,1fr)_96px] gap-2">
|
||||
<select
|
||||
className="w-full border border-base-content/10 bg-transparent px-2 py-2 text-sm"
|
||||
className="lts-select w-full"
|
||||
value={currentValue}
|
||||
onChange={(event) =>
|
||||
setCaptainSelections((current) => ({
|
||||
@@ -2247,7 +2240,7 @@ export default function MatchDetailPage() {
|
||||
min={100}
|
||||
max={100000}
|
||||
step={50}
|
||||
className="w-full border border-base-content/10 bg-transparent px-2 py-2 text-sm tabular-nums"
|
||||
className="lts-input w-full tabular-nums"
|
||||
value={
|
||||
currentSelection?.initialTeamBidPointAmountInput ??
|
||||
"1000"
|
||||
@@ -2300,7 +2293,7 @@ export default function MatchDetailPage() {
|
||||
min={5}
|
||||
max={MAX_AUCTION_TIMER_SECONDS}
|
||||
step={5}
|
||||
className="min-w-0 flex-1 bg-transparent px-2 py-2 text-sm tabular-nums focus:outline-none"
|
||||
className="lts-input min-w-0 flex-1 tabular-nums"
|
||||
value={maximumBidRoundDurationSecondsInput}
|
||||
onChange={(event) =>
|
||||
setMaximumBidRoundDurationSecondsInput(
|
||||
@@ -2334,7 +2327,7 @@ export default function MatchDetailPage() {
|
||||
min={0}
|
||||
max={MAX_AUCTION_TIMER_SECONDS}
|
||||
step={1}
|
||||
className="min-w-0 flex-1 bg-transparent px-2 py-2 text-sm tabular-nums focus:outline-none"
|
||||
className="lts-input min-w-0 flex-1 tabular-nums"
|
||||
value={bidRoundExtensionSecondsInput}
|
||||
onChange={(event) =>
|
||||
setBidRoundExtensionSecondsInput(
|
||||
@@ -2367,7 +2360,7 @@ export default function MatchDetailPage() {
|
||||
<label className="block text-xs text-base-content/45">
|
||||
상위 티어 우선 등장
|
||||
<select
|
||||
className="mt-1 h-[38px] w-full border border-base-content/10 bg-transparent px-2 py-2 text-sm focus:border-primary/30 focus:outline-none"
|
||||
className="lts-select mt-1 w-full"
|
||||
value={topTierAuctionPriorityThreshold}
|
||||
onChange={(event) =>
|
||||
setTopTierAuctionPriorityThreshold(
|
||||
@@ -2416,7 +2409,7 @@ export default function MatchDetailPage() {
|
||||
</span>
|
||||
<input
|
||||
type="checkbox"
|
||||
className="checkbox checkbox-primary checkbox-xs"
|
||||
className="lts-checkbox"
|
||||
checked={checked}
|
||||
onChange={(event) =>
|
||||
setManualTopTierAuctionPriorityUserIds(
|
||||
@@ -2447,9 +2440,8 @@ export default function MatchDetailPage() {
|
||||
</div>
|
||||
)}
|
||||
<div className="sm:col-span-2 flex items-center gap-3">
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-primary btn-sm px-5 text-xs"
|
||||
<Btn
|
||||
variant="primary"
|
||||
disabled={
|
||||
!canStartAuction || startAuctionMutation.isPending
|
||||
}
|
||||
@@ -2460,7 +2452,7 @@ export default function MatchDetailPage() {
|
||||
{startAuctionMutation.isPending
|
||||
? "시작 중..."
|
||||
: "경매 시작"}
|
||||
</button>
|
||||
</Btn>
|
||||
{!canUseMemberActions && (
|
||||
<span className="text-xs text-warning">
|
||||
로그인 또는 Dev Auth에 owner/admin User ID를 먼저
|
||||
@@ -2490,12 +2482,12 @@ export default function MatchDetailPage() {
|
||||
))}
|
||||
{showAuctionLink && (
|
||||
<div className="flex justify-end">
|
||||
<Link
|
||||
<Btn
|
||||
to={`/match/${match.id}/auction`}
|
||||
className="btn btn-primary btn-sm px-5 text-xs"
|
||||
variant="primary"
|
||||
>
|
||||
경매 페이지 열기
|
||||
</Link>
|
||||
</Btn>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -2538,16 +2530,15 @@ export default function MatchDetailPage() {
|
||||
<div className="mb-2 text-xs font-bold text-base-content/45">
|
||||
토너먼트 코드
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-primary btn-sm w-full text-xs"
|
||||
<Btn
|
||||
variant="primary" className="w-full"
|
||||
disabled={pollTournamentResultMutation.isPending}
|
||||
onClick={handlePollTournamentResult}
|
||||
>
|
||||
{pollTournamentResultMutation.isPending
|
||||
? "등록 중..."
|
||||
: "결과 다시 수집"}
|
||||
</button>
|
||||
</Btn>
|
||||
</div>
|
||||
|
||||
<div className="border-t border-base-content/8 pt-4">
|
||||
@@ -2564,7 +2555,7 @@ export default function MatchDetailPage() {
|
||||
onChange={(event) =>
|
||||
setManualResultStartTime(event.target.value)
|
||||
}
|
||||
className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
|
||||
className="lts-input mt-1 w-full"
|
||||
/>
|
||||
</label>
|
||||
<label className="block text-xs text-base-content/35">
|
||||
@@ -2576,12 +2567,11 @@ export default function MatchDetailPage() {
|
||||
onChange={(event) =>
|
||||
setManualResultEndTime(event.target.value)
|
||||
}
|
||||
className="mt-1 w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
|
||||
className="lts-input mt-1 w-full"
|
||||
/>
|
||||
</label>
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-outline btn-sm w-full text-xs"
|
||||
<Btn
|
||||
variant="secondary" className="w-full"
|
||||
disabled={
|
||||
collectResultByWindowMutation.isPending ||
|
||||
!toIsoFromLocalDateTime(manualResultStartTime) ||
|
||||
@@ -2592,7 +2582,7 @@ export default function MatchDetailPage() {
|
||||
{collectResultByWindowMutation.isPending
|
||||
? "수집 중..."
|
||||
: "시간 범위로 수집"}
|
||||
</button>
|
||||
</Btn>
|
||||
{formatManualCollectSummary(
|
||||
collectResultByWindowMutation.data,
|
||||
) && (
|
||||
@@ -2617,11 +2607,10 @@ export default function MatchDetailPage() {
|
||||
setManualRiotMatchId(event.target.value)
|
||||
}
|
||||
placeholder="KR_1234567890"
|
||||
className="w-full border border-base-content/10 bg-transparent px-2 py-2 text-xs text-base-content focus:outline-none focus:border-primary/30"
|
||||
className="lts-input w-full"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-outline btn-sm w-full text-xs"
|
||||
<Btn
|
||||
variant="secondary" className="w-full"
|
||||
disabled={
|
||||
collectResultByRiotMatchMutation.isPending ||
|
||||
!manualRiotMatchId.trim()
|
||||
@@ -2631,7 +2620,7 @@ export default function MatchDetailPage() {
|
||||
{collectResultByRiotMatchMutation.isPending
|
||||
? "수집 중..."
|
||||
: "Match ID로 수집"}
|
||||
</button>
|
||||
</Btn>
|
||||
{formatManualCollectSummary(
|
||||
collectResultByRiotMatchMutation.data,
|
||||
) && (
|
||||
@@ -2682,6 +2671,7 @@ export default function MatchDetailPage() {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</main>
|
||||
</PageBody>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user