diff --git a/src/app/dashboard/page.tsx b/src/app/dashboard/page.tsx index b87e3e8f..e41dd454 100644 --- a/src/app/dashboard/page.tsx +++ b/src/app/dashboard/page.tsx @@ -5,5 +5,5 @@ export default async function Page() { const { sessionClaims } = auth(); console.log("sessionClaims", sessionClaims?.organizations); console.log(sessionClaims?.sub); - redirect(`/${sessionClaims?.sub}`); + redirect(`/usr/${sessionClaims?.sub}`); } diff --git a/src/app/[uid]/chat/[chatid]/page.tsx b/src/app/usr/[uid]/chat/[chatid]/page.tsx similarity index 100% rename from src/app/[uid]/chat/[chatid]/page.tsx rename to src/app/usr/[uid]/chat/[chatid]/page.tsx diff --git a/src/app/[uid]/error.tsx b/src/app/usr/[uid]/error.tsx similarity index 100% rename from src/app/[uid]/error.tsx rename to src/app/usr/[uid]/error.tsx diff --git a/src/app/[uid]/page.tsx b/src/app/usr/[uid]/page.tsx similarity index 100% rename from src/app/[uid]/page.tsx rename to src/app/usr/[uid]/page.tsx diff --git a/src/app/[uid]/layout.tsx b/src/app/usr/layout.tsx similarity index 83% rename from src/app/[uid]/layout.tsx rename to src/app/usr/layout.tsx index 42d344c4..25e2710a 100644 --- a/src/app/[uid]/layout.tsx +++ b/src/app/usr/layout.tsx @@ -1,9 +1,9 @@ "use client"; import { Header } from "@/components/header"; -export const dynamic = "force-dynamic", - revalidate = 0; +// export const dynamic = "force-dynamic", +// revalidate = 0; import useStore from "@/store"; -import { useEffect, useRef } from "react"; +import { useRef, useEffect } from "react"; export default function LoggedInLayout({ children, // will be a page or nested layout @@ -17,11 +17,13 @@ export default function LoggedInLayout({ if (store.audioSrc && audioRef.current) { audioRef.current.src = store.audioSrc; audioRef.current.load(); + audioRef.current.play(); } if (!store.audioSrc) { audioRef.current?.pause(); } }, [store.audioSrc]); + console.log("from nested layout"); return (
diff --git a/src/components/room.tsx b/src/components/room.tsx index 41eb1645..d1dc3460 100644 --- a/src/components/room.tsx +++ b/src/components/room.tsx @@ -40,7 +40,10 @@ const RoomWrapper = (props: Props) => {