fix(ui): use PageSkeleton for uninstall page loading state

Replace custom Loader2 spinner with PageSkeleton to match
the loading pattern used by all other pages.
This commit is contained in:
Willie
2026-03-20 02:36:50 +08:00
parent 72cfca6477
commit a99b6a6087
+2 -10
View File
@@ -28,6 +28,7 @@ import ConfirmDialog from '../components/ConfirmDialog';
import { Input, Select } from '../components/Input';
import { Checkbox } from '../components/Checkbox';
import { useToast } from '../components/Toast';
import { PageSkeleton } from '../components/Skeleton';
import { radius } from '../design';
/* ── Glob → Regex (supports * and ? only) ──────────── */
@@ -263,16 +264,7 @@ export default function BatchUninstallPage() {
// ── Render ───────────────────────────────────────────
if (isPending) {
return (
<div className="space-y-5 animate-fade-in">
<PageHeader title="Uninstall Skills" icon={<Trash2 size={24} strokeWidth={2.5} />} />
<div className="flex items-center gap-2 text-pencil-light">
<Loader2 size={16} className="animate-spin" /> Loading skills…
</div>
</div>
);
}
if (isPending) return <PageSkeleton />;
if (skills.length === 0) {
return (