Fix connexion alert error

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-22 03:39:46 +04:00
parent 9a076db9b9
commit ba42e2c214
+4 -4
View File
@@ -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('')