마에스트로 상세 화면에 [업그레이드] 버튼 추가

This commit is contained in:
2026-07-02 21:51:09 +09:00
parent 7669e9d0de
commit 2d9b8d0624
4 changed files with 294 additions and 18 deletions
+7 -18
View File
@@ -9,11 +9,11 @@ import {
formatDateTime,
getAccountTypeLabel,
getActivateStatusLabel,
getRequestStatusLabel,
} from "@/lib/utils";
import { MaestroEditForm } from "./MaestroEditForm";
import { StudentsSection } from "./StudentsSection";
import { ExtensionRequestsSection } from "./ExtensionRequestsSection";
import { UpgradeRequestsSection } from "./UpgradeRequestsSection";
type MaestroDetailPageProps = {
params: Promise<{
@@ -100,23 +100,12 @@ export default async function MaestroDetailPage({
totalCount={detail.counts.extensionRequests}
/>
<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.upgradeRequests.toLocaleString()} 20
</p>
<SimpleTable
emptyText="업그레이드 신청 이력이 없습니다."
headers={["신청ID", "현재", "요청", "신청일시", "상태"]}
rows={detail.upgradeRequests.map((request) => [
request.maestroUpgradeID,
getAccountTypeLabel(request.registeredAccountType),
getAccountTypeLabel(request.requestedAccountType),
formatDateTime(request.requestedDateTime),
getRequestStatusLabel(request.status),
])}
/>
</section>
<UpgradeRequestsSection
accountType={maestro.accountType}
maestroID={maestroID}
totalCount={detail.counts.upgradeRequests}
upgradeRequests={detail.upgradeRequests}
/>
</div>
<section className="rounded-lg border bg-background p-5">