From d653c15c90f0f5051eca676adf6621efce702855 Mon Sep 17 00:00:00 2001 From: Zikil Date: Sat, 23 Nov 2024 14:43:02 +0700 Subject: [PATCH] for deploy --- app/api/auth/[...nextauth]/route.ts | 2 +- components/shared/modals/show-number.tsx | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index 9918f43..b5d1e6b 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -1,7 +1,7 @@ import NextAuth from "next-auth" import { authOptions } from "@/constants/auth-options" -export const handler = NextAuth(authOptions) + const handler = NextAuth(authOptions) // Экспортируем напрямую функции GET и POST, без промежуточной переменной export const GET = handler diff --git a/components/shared/modals/show-number.tsx b/components/shared/modals/show-number.tsx index 6b3e9d8..09c8cbf 100644 --- a/components/shared/modals/show-number.tsx +++ b/components/shared/modals/show-number.tsx @@ -9,15 +9,15 @@ interface Props { export const ShowNumberModal: React.FC = ({ open, onClose}) => { - const [ session, setSession ] = React.useState(null) + // const [ session, setSession ] = React.useState(null) - React.useEffect(() => { - const getSession = async () => { - const userSession = await getUserSession() - setSession(userSession) - } - getSession() - }, []) + // React.useEffect(() => { + // const getSession = async () => { + // const userSession = await getUserSession() + // setSession(userSession) + // } + // getSession() + // }, []) // const session = await getUserSession() const handleClose = () => { onClose()