added 2FA

This commit is contained in:
2024-04-26 22:16:21 +03:00
parent 53cadc289a
commit f17a002ac6
38 changed files with 1036 additions and 414 deletions

View File

@@ -1,10 +1,9 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
import { ReactElement } from 'react'
import { I18nProviderClient } from '@/locales/client'
import { lc } from '@/lib/utils'
import { Loading } from '@/components/loading'
import './globals.css'
const inter = Inter({ subsets: ['cyrillic'] })
@@ -12,21 +11,17 @@ export const metadata: Metadata = {
title: 'Create Next App', description: 'Generated by create next app',
}
type Props = {
type RootLayoutProps = {
params: { locale: string }; children: ReactElement;
}
export default function RootLayout ({
params: { locale }, children,
}: Readonly<Props>) {
export default function RootLayout ({ params: { locale }, children }: Readonly<RootLayoutProps>) {
return (<html lang={lc(locale)?.java}>
{/*<Suspense fallback={<Loading/>}>*/}
<body className={inter.className}>
<I18nProviderClient locale={locale} fallback={<Loading/>}>
<I18nProviderClient locale={locale} fallback="Loading...">
{children}
</I18nProviderClient>
</body>
{/*</Suspense>*/}
</html>)
}