Fix: Middlerawe/1

This commit is contained in:
2024-11-21 14:35:28 +08:00
parent 7e9dfce293
commit cc690eec06
12 changed files with 32 additions and 18 deletions

View File

@@ -41,15 +41,15 @@ export default async function RootLayout({
}: {
children: React.ReactNode;
}) {
// const userLoginId = await funGetUserIdByToken();
const userLoginId = await funGetUserIdByToken();
// if (!token) return <>Require Token Storage</>;
if (!token) return <>Require Token Storage</>;
return (
<RootStyleRegistry>
{/* <MqttLoader />
<TokenProvider token={token} envObject={envObject} /> */}
{/* <RealtimeProvider userLoginId={userLoginId as string} /> */}
<RealtimeProvider userLoginId={userLoginId as string} />
{children}
</RootStyleRegistry>
);