feat(don): admin overhaul
Build and Push Image / build-backend (push) Successful in 4m30s
Build and Push Image / build-frontend (push) Successful in 5m36s
Build and Push Image / push (push) Successful in 1m18s

This commit is contained in:
2026-07-13 00:40:59 +07:00 Unverified
parent 795cda1db3
commit f1622792c7
4 changed files with 105 additions and 22 deletions
+7 -2
View File
@@ -9,6 +9,7 @@ import {
} from "@tanstack/react-table";
import { FolderCode, Plus } from "lucide-react";
import Link from "next/link";
import type { ComponentProps } from "react";
import { type MouseEventHandler, type ReactNode, useState } from "react";
import {
Table,
@@ -51,6 +52,7 @@ export function DataTable<TData, TValue>({
home,
context,
onClick,
style,
}: DataTableProps<TData, TValue> & {
className?: string;
openCreateDialog?: () => void;
@@ -66,7 +68,7 @@ export function DataTable<TData, TValue>({
icon?: ReactNode;
}[];
onClick?: (row: TData) => void;
}) {
} & Pick<ComponentProps<"div">, "style">) {
const [internalRowSelection, setInternalRowSelection] = useState({});
const table = useReactTable({
@@ -80,7 +82,10 @@ export function DataTable<TData, TValue>({
});
return (
<div className={cn("overflow-hidden rounded-md border", className)}>
<div
className={cn("overflow-hidden rounded-md border", className)}
style={style}
>
<Table className="table-fixed">
<TableHeader>
{table.getHeaderGroups().map((headerGroup) => (