chore: migrate to mantine from shadcn for datatable

This commit is contained in:
ghost2023
2026-06-10 10:02:09 +03:00
parent 1440c42f1e
commit 02621d05d8
3 changed files with 27 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
import { Table } from "@mantine/core";
import { Table as TanstackTable } from "@tanstack/react-table";
import { TableCell, TableRow } from "../table";
import { Button } from "../button";
export function DataTableError({
@@ -15,8 +15,8 @@ export function DataTableError({
onRetry?: () => void;
}) {
return (
<TableRow>
<TableCell colSpan={table.getVisibleFlatColumns().length}>
<Table.Tr>
<Table.Td colSpan={table.getVisibleFlatColumns().length}>
<div className="flex items-center my-6 justify-center">
<div className="text-center">
<div className="my-4">
@@ -34,7 +34,7 @@ export function DataTableError({
)}
</div>
</div>
</TableCell>
</TableRow>
</Table.Td>
</Table.Tr>
);
}