Fix copy alert error

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-01-22 03:40:30 +04:00
parent ba42e2c214
commit 81d75a7365
+4 -4
View File
@@ -1,4 +1,4 @@
import {useEffect, useState} from 'react'
import {useEffect, useState, forwardRef} from 'react'
import PropTypes from 'prop-types'
import Link from 'next/link'
import {useRouter} from 'next/router'
@@ -160,9 +160,9 @@ const Root = styled('div')((
}
}))
function Alert(props) {
return <MuiAlert elevation={6} variant='filled' {...props} />
}
const Alert = forwardRef(function Alert(props, ref) { // eslint-disable-line func-names
return <MuiAlert ref={ref} elevation={6} variant='filled' {...props} />
})
const drawerWidth = 240