Administration
@@ -31,8 +29,8 @@ const Admin = () => {
gap: 4
}}
>
-
-
+
+
)
diff --git a/client/app/admin/components/post-table.tsx b/client/app/admin/components/post-table.tsx
index 0fff6b49..dc8f810e 100644
--- a/client/app/admin/components/post-table.tsx
+++ b/client/app/admin/components/post-table.tsx
@@ -1,25 +1,17 @@
+'use client';
import SettingsGroup from "@components/settings-group"
import { Fieldset, useToasts } from "@geist-ui/core/dist"
import byteToMB from "@lib/byte-to-mb"
-import { Post } from "@lib/types"
+import { Post } from "@lib/server/prisma";
import Table from "rc-table"
import { useEffect, useMemo, useState } from "react"
-import { adminFetcher } from "./admin"
import ActionDropdown from "./action-dropdown"
-const PostTable = () => {
- const [posts, setPosts] = useState