-
- 권한 확인 중
-
-
- 관리자 권한을 확인한 뒤 경매 시작 버튼을 표시합니다.
+ {addParticipantOpen && (
+ setAddParticipantOpen(false)}
+ onAddParticipant={(params) =>
+ addParticipantMutation.mutate(params)
+ }
+ addingUserId={
+ addParticipantMutation.isPending
+ ? (addParticipantMutation.variables?.userId ?? null)
+ : null
+ }
+ error={
+ addParticipantMutation.error instanceof Error
+ ? addParticipantMutation.error
+ : null
+ }
+ />
+ )}
+
+ {isCheckingPermissions ? (
+
+
+ 권한 확인 중
+
+
+ 관리자 권한을 확인한 뒤 경매 시작 버튼을 표시합니다.
+
+
+ ) : canManageAuction ? (
+
+
+
+ 경매 시작
+
+
+ 참가 신청 순서 기준 5명당 1개 팀이 만들어지고, 각 팀의
+ 팀장을 지정합니다.
+
+ {waitingParticipantCount > 0 && (
+
+ {waitingParticipantCount}명은 10명 단위에 맞지 않아 이번
+ 경매에서 제외됩니다.
-
- ) : canManageAuction ? (
-
-
-
- 경매 시작
-
-
- 참가 신청 순서 기준 5명당 1개 팀이 만들어지고, 각 팀의
- 팀장을 지정합니다.
-
- {waitingParticipantCount > 0 && (
-
- {waitingParticipantCount}명은 10명 단위에 맞지 않아
- 이번 경매에서 제외됩니다.
-
- )}
-
+ )}
+
- {showAuctionLink ? (
-
- 경매 페이지 열기
-
- ) : (
-
- {captainSlots.length > 0 ? (
-
- {captainSlots.map((slot) => {
- const key = captainSlotKey(slot);
- const currentSelection = captainSelections[key];
- const currentValue =
- currentSelection?.userId ?? "";
- return (
-
- );
- })}
-
- ) : (
-
- 경매를 시작하려면 최소 10명이 필요합니다.
-
- )}
-
-
-
-