Adapt with new next-auth version
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {useState, useEffect, useRef} from 'react'
|
||||
import {styled} from '@mui/material/styles'
|
||||
import PropTypes from 'prop-types'
|
||||
import {useSession} from 'next-auth/client'
|
||||
import {useSession} from 'next-auth/react'
|
||||
|
||||
import {
|
||||
IconButton,
|
||||
@@ -48,7 +48,7 @@ export default function VweKomante({komante, teks}) {
|
||||
const [esOuve, meteEsOuve] = useState(false)
|
||||
const [esKoneksyonOuve, meteEsKoneksyonOuve] = useState(false)
|
||||
const [esKomenteOuve, meteEsKomanteOuve] = useState(false)
|
||||
const [session] = useSession()
|
||||
const {data: session} = useSession()
|
||||
const router = useRouter()
|
||||
|
||||
const handleClick = () => {
|
||||
|
||||
Reference in New Issue
Block a user