This commit is contained in:
dahyeon committed 2026-04-26 05:38:58 -07:00
1 parent dfcfe9e4ad
commit 60928bc165
2 files changed
+43 -4

No files matched your search

+13 -2
View File
@@ -384,6 +384,8 @@ export default function MatchDetailPage() {
const si = statusBadge(match.status);
const canManageAuction =
currentUser?.role === 'owner' || currentUser?.role === 'admin';
const isCheckingPermissions =
meQuery.isLoading || (meQuery.isFetching && !meQuery.data);
const auctionNotStarted =
auctionQuery.error instanceof ApiError && auctionQuery.error.status === 404;
const showAuctionLink = Boolean(auctionQuery.data);
@@ -502,7 +504,16 @@ export default function MatchDetailPage() {
isJoining={joinMatchMutation.isPending}
/>
{canManageAuction && (
{isCheckingPermissions ? (
<div className="border border-base-content/10 bg-base-100 p-4">
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
권한 확인 중
</h3>
<p className="mt-1 text-xs text-base-content/40">
관리자 권한을 확인한 뒤 경매 시작 버튼을 표시합니다.
</p>
</div>
) : canManageAuction ? (
<div className="border border-base-content/10 bg-base-100 p-4 space-y-3">
<div>
<h3 className="text-[11px] font-bold uppercase tracking-wider text-base-content/40">
@@ -567,7 +578,7 @@ export default function MatchDetailPage() {
</div>
)}
</div>
)}
) : null}
</>
) : (
<div className="space-y-4">