mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 18:56:39 +00:00
add placeholder buttons to make all rows the same height
This commit is contained in:
@@ -65,6 +65,14 @@ export default function UsersTable({ roles: r }: RolesTableProps) {
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-end">
|
||||
{roleRow.isAdmin && (
|
||||
<Button
|
||||
variant="ghost"
|
||||
className="h-8 w-8 p-0 opacity-0 cursor-default"
|
||||
>
|
||||
Placeholder
|
||||
</Button>
|
||||
)}
|
||||
{!roleRow.isAdmin && (
|
||||
<DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
@@ -117,7 +125,9 @@ export default function UsersTable({ roles: r }: RolesTableProps) {
|
||||
roleToDelete={roleToRemove}
|
||||
afterDelete={() => {
|
||||
setRoles((prev) =>
|
||||
prev.filter((r) => r.roleId !== roleToRemove.roleId)
|
||||
prev.filter(
|
||||
(r) => r.roleId !== roleToRemove.roleId,
|
||||
),
|
||||
);
|
||||
setUserToRemove(null);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user