Update frontend packages

- Major update for react-table
- Fix Hosts menu staying around after selecting a menu item
This commit is contained in:
Jamie Curnow committed 2026-08-22 23:23:20 +10:00
1 parent 4e2b052b50
commit 4ecb047299
36 files changed
+1221 -1051

No files matched your search

+5 -5
View File
@@ -7,7 +7,7 @@ import {
IconShield,
IconTrash,
} from "@tabler/icons-react";
import { createColumnHelper, getCoreRowModel, useReactTable } from "@tanstack/react-table";
import { createColumnHelper, useTable } from "@tanstack/react-table";
import { useMemo } from "react";
import type { User } from "src/api/backend";
import {
@@ -18,6 +18,7 @@ import {
TrueFalseFormatter,
ValueWithDateFormatter,
} from "src/components";
import { type Features, features } from "src/components/Table/features";
import { TableLayout } from "src/components/Table/TableLayout";
import { intl, T } from "src/locale";
@@ -47,7 +48,7 @@ export default function Table({
onNewUser,
onLoginAs,
}: Props) {
const columnHelper = createColumnHelper<User>();
const columnHelper = createColumnHelper<Features, User>();
const columns = useMemo(
() => [
columnHelper.accessor((row: any) => row, {
@@ -216,11 +217,10 @@ export default function Table({
],
);
const tableInstance = useReactTable<User>({
const tableInstance = useTable({
features,
columns,
data,
getCoreRowModel: getCoreRowModel(),
rowCount: data.length,
meta: {
isFetching,
},