feat: show approved count on dashboard

This commit is contained in:
unknown
2026-07-20 18:30:11 +09:00
parent e6bc4cf734
commit 85f94ba4f2
2 changed files with 2 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ export const DashboardPage: React.FC = () => {
<StatCard label="오늘 출입 예정" value={stats?.todayVisits ?? 0} accent="blue" /> <StatCard label="오늘 출입 예정" value={stats?.todayVisits ?? 0} accent="blue" />
<StatCard label="현재 재실" value={stats?.currentlyInside ?? 0} accent="green" /> <StatCard label="현재 재실" value={stats?.currentlyInside ?? 0} accent="green" />
<StatCard label="승인 대기" value={stats?.pending ?? 0} accent="amber" /> <StatCard label="승인 대기" value={stats?.pending ?? 0} accent="amber" />
<StatCard label="승인완료" value={stats?.approved ?? 0} accent="green" />
<StatCard label="전체 신청" value={stats?.total ?? 0} accent="gray" /> <StatCard label="전체 신청" value={stats?.total ?? 0} accent="gray" />
</div> </div>

View File

@@ -316,7 +316,7 @@ button:disabled { opacity: .55; cursor: not-allowed; }
.action-cell { display: flex; gap: 8px; } .action-cell { display: flex; gap: 8px; }
/* ===== Stats ===== */ /* ===== Stats ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; } .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { .stat-card {
background: var(--surface); border: 1px solid var(--border); background: var(--surface); border: 1px solid var(--border);
border-radius: 12px; padding: 18px 20px; border-radius: 12px; padding: 18px 20px;