diff --git a/client/app/(posts)/new/page.tsx b/client/app/(posts)/new/page.tsx
index 8e17ea00..647ca2dd 100644
--- a/client/app/(posts)/new/page.tsx
+++ b/client/app/(posts)/new/page.tsx
@@ -1,6 +1,5 @@
-import Header from "@components/header"
import NewPost from "app/(posts)/new/components/new"
-import "@styles/react-datepicker.css"
+import "./react-datepicker.css"
const New = () =>
diff --git a/client/app/styles/react-datepicker.css b/client/app/(posts)/new/react-datepicker.css
similarity index 100%
rename from client/app/styles/react-datepicker.css
rename to client/app/(posts)/new/react-datepicker.css
diff --git a/client/app/admin/components/user-table.tsx b/client/app/admin/components/user-table.tsx
index 2eff11cf..a4246f54 100644
--- a/client/app/admin/components/user-table.tsx
+++ b/client/app/admin/components/user-table.tsx
@@ -10,7 +10,6 @@ const UserTable = ({ users: initial }: { users: UserWithPosts[] }) => {
const [users, setUsers] = useState(initial)
const { setToast } = useToasts()
- console.log(initial)
const toggleRole = async (id: string, role: "admin" | "user") => {
const res = await fetch("/api/admin?action=toggle-role", {
method: "POST",
@@ -20,8 +19,6 @@ const UserTable = ({ users: initial }: { users: UserWithPosts[] }) => {
})
})
- const json = await res.json()
-
if (res.status === 200) {
setToast({
text: "Role updated",
@@ -84,7 +81,7 @@ const UserTable = ({ users: initial }: { users: UserWithPosts[] }) => {
id: user.id,
displayName: user.displayName,
posts: user.posts?.length || 0,
- createdAt: `${new Date(user.createdAt)} ${new Date(
+ createdAt: `${new Date(user.createdAt).toLocaleDateString()} ${new Date(
user.createdAt
).toLocaleTimeString()}`,
role: user.role,
diff --git a/client/app/admin/page.tsx b/client/app/admin/page.tsx
index 26803b8d..0b1e2969 100644
--- a/client/app/admin/page.tsx
+++ b/client/app/admin/page.tsx
@@ -26,7 +26,7 @@ const AdminPage = async () => {
display: "flex",
flexDirection: "column",
alignItems: "center",
- gap: 4
+ gap: "var(--gap)",
}}
>
diff --git a/client/app/components/settings-group/index.tsx b/client/app/components/settings-group/index.tsx
index 58269b3e..9872ad77 100644
--- a/client/app/components/settings-group/index.tsx
+++ b/client/app/components/settings-group/index.tsx
@@ -9,7 +9,7 @@ type Props = {
const SettingsGroup = ({ title, children }: Props) => {
return (
-