Skip to content

Commit

Permalink
fix: rename new table
Browse files Browse the repository at this point in the history
  • Loading branch information
thomhickey committed Dec 3, 2024
1 parent 31b87a5 commit e387b90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const StyledTableRow = styled(TableRow)(() => ({
},
}));

export function Table2<T extends UserBase>({
export function PaginatedTable<T extends UserBase>({
data,
columns,
type,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/admin/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -98,7 +98,7 @@ const AdminHome: React.FC = () => {

return (
<div>
<Table2<User>
<PaginatedTable<User>
data={(data?.users as User[]) ?? []}
columns={columns}
type="Users"
Expand Down

0 comments on commit e387b90

Please sign in to comment.