added 2FA
This commit is contained in:
@@ -2,6 +2,7 @@ import { auth, signOut } from '@/config/auth'
|
||||
|
||||
const CabinetPage = async () => {
|
||||
const session = await auth()
|
||||
|
||||
return (
|
||||
<div>
|
||||
{JSON.stringify(session)}
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
import type { Metadata } from 'next'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'key',
|
||||
description: '...',
|
||||
}
|
||||
|
||||
const AboutPage = () => {
|
||||
return <>ABOUT</>
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import { Button } from '@/components/ui/button'
|
||||
import LoginButton from '@/components/auth/login-button'
|
||||
import Image from 'next/image'
|
||||
import wolf from '@/img/Gray wolf portrait.jpg'
|
||||
import { Grid } from 'react-loader-spinner'
|
||||
|
||||
const font = Poppins({
|
||||
subsets: ['latin'], weight: ['600'],
|
||||
|
||||
@@ -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>)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user