This commit is contained in:
PxlLoewe
2025-07-06 00:36:48 -07:00
parent 2cdbab9f28
commit a9d20e018d
13 changed files with 72 additions and 19 deletions

View File

@@ -4,7 +4,7 @@ import { Check, MessageSquareWarning, Settings } from "lucide-react";
import { MessageForm } from "./_components/MessageForm";
import { PaginatedTable, PaginatedTableRef } from "_components/PaginatedTable";
import { ColumnDef } from "@tanstack/react-table";
import { Notam } from "@repo/db";
import { Config } from "@repo/db";
import { useRef } from "react";
export default function MessagePage() {
@@ -25,7 +25,7 @@ export default function MessagePage() {
</div>
<PaginatedTable
ref={tableRef}
prismaModel="notam"
prismaModel="config"
initialOrderBy={[{ id: "createdAt", desc: true }]}
columns={
[
@@ -72,7 +72,7 @@ export default function MessagePage() {
});
},
},
] as ColumnDef<Notam>[]
] as ColumnDef<Config>[]
}
/>
</>