feat(rbac): ui components and hooks for rbac

This commit is contained in:
Akhil Mohan
2023-09-08 21:20:29 +05:30
parent 1bf9041ac9
commit 1167b1bc60
15 changed files with 974 additions and 196 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ export const Tr = ({
}: TrProps): JSX.Element => (
<tr
className={twMerge(
"cursor-default border border-solid border-mineshaft-600",
"cursor-default border-b last:border-b-0 border-solid border-mineshaft-600",
isHoverable && "hover:bg-mineshaft-600",
isSelectable && "cursor-pointer",
className
@@ -124,7 +124,7 @@ export type TdProps = {
} & TdHTMLAttributes<HTMLTableCellElement>;
export const Td = ({ children, className, ...props }: TdProps): JSX.Element => (
<td className={twMerge("px-5 py-2 text-left", className)} {...props}>
<td className={twMerge("px-5 py-3 text-left", className)} {...props}>
{children}
</td>
);