Fix copy alert error
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {useEffect, useState} from 'react'
|
import {useEffect, useState, forwardRef} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
@@ -160,9 +160,9 @@ const Root = styled('div')((
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
|
||||||
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} />
|
||||||
}
|
})
|
||||||
|
|
||||||
const drawerWidth = 240
|
const drawerWidth = 240
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user