for deploy
This commit is contained in:
parent
ea479c6639
commit
d653c15c90
@ -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
|
||||
|
||||
@ -9,15 +9,15 @@ interface Props {
|
||||
|
||||
export const ShowNumberModal: React.FC<Props> = ({ open, onClose}) => {
|
||||
|
||||
const [ session, setSession ] = React.useState<any>(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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user