fix: react-doctor 71→73 (skeleton td aria-hidden, AdminToggle aria-label)
This commit is contained in:
@@ -413,7 +413,7 @@ export default function BillingClientPage({ overview }: Props) {
|
||||
);
|
||||
})}
|
||||
<tr className="border-t-2 border-[var(--admin-border)] bg-[var(--admin-bg-subtle)]">
|
||||
<td className="pt-4 pr-6" />
|
||||
<td className="pt-4 pr-6" aria-hidden="true" />
|
||||
{(["starter", "farm", "enterprise"] as const).map((tier) => {
|
||||
const isCurrent = tier === planTier;
|
||||
return (
|
||||
|
||||
@@ -100,23 +100,23 @@ function ContactSkeleton() {
|
||||
<>
|
||||
{[1, 2, 3, 4, 5].map((i) => (
|
||||
<tr key={i} className="border-b border-[var(--admin-border)]" aria-hidden="true">
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-24 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-24 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-32 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-32 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-20 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-20 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-16 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-16 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-16 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-16 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-4 w-12 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-4 w-12 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
@@ -130,23 +130,23 @@ function LogSkeleton() {
|
||||
<>
|
||||
{[1, 2, 3, 4, 5].map((i) => (
|
||||
<tr key={i} className="border-b border-[var(--admin-border)]" aria-hidden="true">
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-3 w-20 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-3 w-20 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-3 w-32 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-3 w-32 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-14 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-14 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-3 w-40 bg-stone-200 rounded animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-3 w-40 bg-stone-200 rounded animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-20 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-20 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
<td className="px-4 py-3">
|
||||
<div className="h-5 w-24 bg-stone-200 rounded-full animate-pulse" />
|
||||
<td className="px-4 py-3" aria-hidden="true">
|
||||
<div className="h-5 w-24 bg-stone-200 rounded-full animate-pulse" aria-hidden="true" />
|
||||
</td>
|
||||
</tr>
|
||||
))}
|
||||
|
||||
@@ -84,6 +84,7 @@ export function AdminToggleCompact({
|
||||
<button
|
||||
type="button"
|
||||
role="switch"
|
||||
aria-label={label ?? "Toggle"}
|
||||
aria-checked={checked}
|
||||
disabled={disabled}
|
||||
onClick={() => !disabled && onChange(!checked)}
|
||||
|
||||
@@ -733,11 +733,11 @@ export default function WaterAdminClient() {
|
||||
{initialLoading ? (
|
||||
Array.from({ length: 8 }).map((_, i) => (
|
||||
<tr key={i} aria-hidden="true">
|
||||
<td className="py-3"><div className="h-3 w-20 bg-stone-100 rounded animate-pulse" /></td>
|
||||
<td className="py-3"><div className="h-3 w-16 bg-stone-100 rounded animate-pulse hidden sm:table-cell" /></td>
|
||||
<td className="py-3"><div className="h-3 w-14 bg-stone-100 rounded animate-pulse" /></td>
|
||||
<td className="py-3"><div className="h-3 w-10 bg-stone-100 rounded animate-pulse ml-auto" /></td>
|
||||
<td className="py-3"><div className="h-5 w-8 bg-stone-100 rounded animate-pulse ml-auto" /></td>
|
||||
<td className="py-3" aria-hidden="true"><div className="h-3 w-20 bg-stone-100 rounded animate-pulse" aria-hidden="true" /></td>
|
||||
<td className="py-3" aria-hidden="true"><div className="h-3 w-16 bg-stone-100 rounded animate-pulse hidden sm:table-cell" aria-hidden="true" /></td>
|
||||
<td className="py-3" aria-hidden="true"><div className="h-3 w-14 bg-stone-100 rounded animate-pulse" aria-hidden="true" /></td>
|
||||
<td className="py-3" aria-hidden="true"><div className="h-3 w-10 bg-stone-100 rounded animate-pulse ml-auto" aria-hidden="true" /></td>
|
||||
<td className="py-3" aria-hidden="true"><div className="h-5 w-8 bg-stone-100 rounded animate-pulse ml-auto" aria-hidden="true" /></td>
|
||||
</tr>
|
||||
))
|
||||
) : filteredEntries.length === 0 ? (
|
||||
|
||||
Reference in New Issue
Block a user