fix: resolve biome lint warnings in admin page (useless fragment, non-null assertion)

This commit is contained in:
2026-03-11 11:55:00 +01:00
parent f214660ab2
commit 29250f8694

View File

@@ -497,23 +497,17 @@ function AdminPage() {
label="Artiesten"
accent="amber"
value={performerCount}
sub={
<>
{stats?.byArtForm.slice(0, 3).map((item) => (
sub={stats?.byArtForm.slice(0, 3).map((item) => (
<div
key={item.artForm}
className="flex justify-between text-amber-300/60"
>
<span className="truncate">
{item.artForm || "Onbekend"}
</span>
<span className="truncate">{item.artForm || "Onbekend"}</span>
<span className="ml-2 shrink-0 font-mono text-amber-300">
{item.count}
</span>
</div>
))}
</>
}
/>
<StatCard
label="Bezoekers aanwezig"
@@ -1234,7 +1228,7 @@ function AdminPage() {
<button
type="button"
onClick={() =>
setPage((p) => Math.min(pagination!.totalPages, p + 1))
setPage((p) => Math.min(pagination?.totalPages ?? p, p + 1))
}
disabled={page === pagination.totalPages}
className="rounded-lg border border-white/15 bg-white/5 px-4 py-1.5 font-mono text-white/60 text-xs transition hover:border-white/30 hover:text-white disabled:opacity-30"