fix: react-doctor control-has-associated-label 48→19 (toggles, empty th, action menus)
This commit is contained in:
@@ -385,7 +385,7 @@ export default function UsersPage({ initialUsers, brands, currentUser, onUserCre
|
||||
<th className="px-5 py-4 font-semibold">Brand</th>
|
||||
<th className="px-5 py-4 font-semibold">Status</th>
|
||||
<th className="px-5 py-4 font-semibold">Created</th>
|
||||
{canManageUsers && <th className="px-5 py-4 font-semibold" />}
|
||||
{canManageUsers && <th className="px-5 py-4 font-semibold" aria-label="Actions" />}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody className="divide-y divide-stone-100">
|
||||
@@ -651,7 +651,7 @@ export default function UsersPage({ initialUsers, brands, currentUser, onUserCre
|
||||
<p className="font-medium text-stone-900">Active</p>
|
||||
<p className="text-xs text-stone-500">Deactivated users cannot log in</p>
|
||||
</div>
|
||||
<button type="button"
|
||||
<button type="button" aria-label="Toggle user active status" aria-pressed={editing.active}
|
||||
onClick={() => setActive(!editing.active)}
|
||||
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${editing.active ? "bg-emerald-600" : "bg-stone-300"}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user