diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx
index 97c7a66..2aabd19 100644
--- a/src/app/dashboard/page.tsx
+++ b/src/app/dashboard/page.tsx
@@ -25,7 +25,7 @@ export default async function Dashboard() {
)}
- {user && }
+
);
}
diff --git a/src/app/room/[id]/loading.tsx b/src/app/room/[id]/loading.tsx
new file mode 100644
index 0000000..b61d5d9
--- /dev/null
+++ b/src/app/room/[id]/loading.tsx
@@ -0,0 +1,6 @@
+import LoadingIndicator from "@/app/_components/LoadingIndicator";
+
+export default function Loading() {
+ // You can add any UI inside Loading, including a Skeleton.
+ return
;
+}
diff --git a/src/app/room/[id]/page.tsx b/src/app/room/[id]/page.tsx
index 01ed746..fb3416c 100644
--- a/src/app/room/[id]/page.tsx
+++ b/src/app/room/[id]/page.tsx
@@ -1,5 +1,3 @@
-import { currentUser } from "@clerk/nextjs";
-import Loading from "@/app/_components/Loading";
import VoteUI from "@/app/_components/VoteUI";
export const runtime = "edge";
@@ -8,20 +6,10 @@ export const dynamic = "force-dynamic";
export const revalidate = 0;
export const fetchCache = "force-no-store";
-export default async function Room() {
- const user = await currentUser();
-
- const shapedUser = {
- id: user?.id,
- firstName: user?.firstName,
- lastName: user?.lastName,
- imageUrl: user?.imageUrl,
- publicMetadata: user?.publicMetadata,
- };
-
+export default function Room() {
return (
- {user ? : }
+
);
}