fix: nested layout

deskripsi:
- fix use server pada nested layout
- penambahan pemanggilan api pada realtime provider
- fix tampilan table admin event pada username
This commit is contained in:
2025-05-23 14:20:05 +08:00
parent be2982a1cb
commit c202cc8ea0
5 changed files with 56 additions and 15 deletions

View File

@@ -8,12 +8,12 @@ export default async function Layout({
}: {
children: React.ReactNode;
}) {
const userId = await funGetUserIdByToken();
// const userId = await funGetUserIdByToken();
return (
<>
<RealtimeProvider
userId={userId}
// userId={userId}
WIBU_REALTIME_TOKEN={
ServerEnv.value?.NEXT_PUBLIC_WIBU_REALTIME_TOKEN as string
}