fix: add missing DataTableProvider (#20473)

* fix: add missing DataTableProvider

* add e2e test
This commit is contained in:
Eunjae Lee authored and GitHub committed 2025-04-01 10:57:36 +01:00
1 parent f1a832921a
commit 1d9d52ecf8
3 files changed
+61 -2

No files matched your search

@@ -2,7 +2,8 @@ import type { ColumnDef } from "@tanstack/react-table";
import { useReactTable, getCoreRowModel } from "@tanstack/react-table";
import { useRef, useState } from "react";
import { DataTable, DataTableToolbar } from "@calcom/features/data-table";
import { DataTableProvider } from "@calcom/features/data-table/DataTableProvider";
import { DataTable, DataTableToolbar } from "@calcom/features/data-table/components";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { trpc } from "@calcom/trpc/react";
@@ -17,6 +18,14 @@ interface TeamGroupMapping {
}
const GroupTeamMappingTable = () => {
return (
<DataTableProvider>
<GroupTeamMappingTableContent />
</DataTableProvider>
);
};
const GroupTeamMappingTableContent = () => {
const { t } = useLocale();
const [createTeamDialogOpen, setCreateTeamDialogOpen] = useState(false);