apps/web: fix authContext is undefined

This commit is contained in:
vchikalkin 2024-05-07 14:17:55 +03:00
parent 4fc8d9485e
commit 51eb5ad130

View File

@ -2,6 +2,7 @@ import { Login } from '@/components';
import { publicRuntimeConfig } from '@/config/runtime';
import { AuthModeContext } from '@/context/auth-mode';
import Head from 'next/head';
import { useMemo } from 'react';
const { APP_DESCRIPTION } = publicRuntimeConfig;
@ -15,8 +16,10 @@ function PageHead() {
}
export default function Page() {
const value = useMemo(() => ({ tfa: false }), []);
return (
<AuthModeContext.Provider>
<AuthModeContext.Provider value={value}>
<PageHead />
<Login />
</AuthModeContext.Provider>