feat: 優化中央後台 UI (用語調整、移除連結) 與實作 RWD 支援
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 44s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-16 10:14:59 +08:00
parent 8a9b8135bd
commit aa4143ccf1
6 changed files with 72 additions and 51 deletions

View File

@@ -19,7 +19,7 @@ interface DashboardProps {
export default function Dashboard({ totalTenants, activeTenants, recentTenants }: DashboardProps) {
const statsCards = [
{
title: "戶總數",
title: "戶總數",
value: totalTenants,
icon: Building2,
color: "bg-blue-500",
@@ -62,7 +62,7 @@ export default function Dashboard({ totalTenants, activeTenants, recentTenants }
{/* Recent Tenants */}
<div className="bg-white rounded-xl border border-slate-200 overflow-hidden">
<div className="px-6 py-4 border-b border-slate-200 flex items-center justify-between">
<h2 className="text-lg font-semibold text-slate-900"></h2>
<h2 className="text-lg font-semibold text-slate-900"></h2>
<Link
href="/landlord/tenants"
className="text-sm text-primary-main hover:underline"
@@ -73,7 +73,7 @@ export default function Dashboard({ totalTenants, activeTenants, recentTenants }
<div className="divide-y divide-slate-100">
{recentTenants.length === 0 ? (
<div className="px-6 py-8 text-center text-slate-500">
</div>
) : (
recentTenants.map((tenant) => (
@@ -87,8 +87,8 @@ export default function Dashboard({ totalTenants, activeTenants, recentTenants }
<div className="flex items-center gap-3">
<span
className={`px-2 py-1 rounded-full text-xs font-medium ${tenant.is_active
? "bg-green-100 text-green-700"
: "bg-slate-100 text-slate-600"
? "bg-green-100 text-green-700"
: "bg-slate-100 text-slate-600"
}`}
>
{tenant.is_active ? "啟用" : "停用"}