Add checkboxes for documents table

Helps #167

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Jonathan
2025-07-08 11:09:41 +02:00
committed by Sacha Al Himdani
parent 25b330f948
commit a4606f95f5
7 changed files with 148 additions and 18 deletions

View File

@@ -5,6 +5,7 @@ import {
type HTMLAttributes,
type PropsWithChildren,
type ReactNode,
type ThHTMLAttributes,
} from "react";
import { Card } from "../Card/Card";
import { Link } from "react-router";
@@ -34,9 +35,15 @@ export function Th({
children,
className,
width,
}: PropsWithChildren<{ className?: string; width?: number }>) {
...props
}: {
className?: string;
width?: number;
colspan?: number;
} & ThHTMLAttributes<HTMLTableCellElement>) {
return (
<th
{...props}
className={clsx(
"first:pl-6 last:pr-6 py-3 whitespace-nowrap",
className,