Fix connexion alert error
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {useEffect, useState} from 'react'
|
import {useEffect, useState, forwardRef} from 'react'
|
||||||
import {signIn} from 'next-auth/client'
|
import {signIn} from 'next-auth/client'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
@@ -34,9 +34,9 @@ const PROVIDERS = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
function Alert(props) {
|
const Alert = forwardRef(function Alert(props, ref) { // eslint-disable-line func-names
|
||||||
return <MuiAlert elevation={6} variant='filled' {...props} />
|
return <MuiAlert ref={ref} elevation={6} variant='filled' {...props} />
|
||||||
}
|
})
|
||||||
|
|
||||||
function Koneksyon({detay, tit, soutit, titGwose, chimen}) {
|
function Koneksyon({detay, tit, soutit, titGwose, chimen}) {
|
||||||
const [loginError, setError] = useState('')
|
const [loginError, setError] = useState('')
|
||||||
|
|||||||
Reference in New Issue
Block a user