마에스트로 상세 화면에 [연장] 신청 버튼 추가

This commit is contained in:
2026-07-02 21:50:56 +09:00
parent b2483a1b77
commit 7669e9d0de
4 changed files with 239 additions and 17 deletions
+7 -17
View File
@@ -13,6 +13,7 @@ import {
} from "@/lib/utils";
import { MaestroEditForm } from "./MaestroEditForm";
import { StudentsSection } from "./StudentsSection";
import { ExtensionRequestsSection } from "./ExtensionRequestsSection";
type MaestroDetailPageProps = {
params: Promise<{
@@ -92,23 +93,12 @@ export default async function MaestroDetailPage({
<StudentsSection maestroID={maestroID} />
<div className="grid gap-4 xl:grid-cols-2">
<section className="rounded-lg border bg-background p-5">
<h2 className="text-base font-semibold"> </h2>
<p className="mt-1 text-sm text-muted-foreground">
{detail.counts.extensionRequests.toLocaleString()}
20
</p>
<SimpleTable
emptyText="연장 신청 이력이 없습니다."
headers={["신청ID", "계정 유형", "신청일시", "상태"]}
rows={detail.extensionRequests.map((request) => [
request.maestroExtensionID,
getAccountTypeLabel(request.accountType),
formatDateTime(request.requestedDateTime),
getRequestStatusLabel(request.status),
])}
/>
</section>
<ExtensionRequestsSection
accountType={maestro.accountType}
extensionRequests={detail.extensionRequests}
maestroID={maestroID}
totalCount={detail.counts.extensionRequests}
/>
<section className="rounded-lg border bg-background p-5">
<h2 className="text-base font-semibold"> </h2>