diff --git a/src/components/table/table2.tsx b/src/components/table/PaginatedTable.tsx similarity index 99% rename from src/components/table/table2.tsx rename to src/components/table/PaginatedTable.tsx index b5dbbf34..67f195a7 100644 --- a/src/components/table/table2.tsx +++ b/src/components/table/PaginatedTable.tsx @@ -29,7 +29,7 @@ const StyledTableRow = styled(TableRow)(() => ({ }, })); -export function Table2({ +export function PaginatedTable({ data, columns, type, diff --git a/src/pages/admin/index.tsx b/src/pages/admin/index.tsx index dc472664..9e6cafa2 100644 --- a/src/pages/admin/index.tsx +++ b/src/pages/admin/index.tsx @@ -1,6 +1,6 @@ import { requiresAdminAuth } from "@/client/lib/protected-page"; import { trpc } from "@/client/lib/trpc"; -import { Table2 } from "@/components/table/table2"; +import { PaginatedTable } from "@/components/table/PaginatedTable"; import { ColumnDefinition, UserBase } from "@/components/table/types"; import { useRouter } from "next/router"; import { useState } from "react"; @@ -98,7 +98,7 @@ const AdminHome: React.FC = () => { return (
- + data={(data?.users as User[]) ?? []} columns={columns} type="Users"