Fix lint errors

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2021-09-21 21:28:04 +02:00
parent d1bb5ce0f7
commit aa65b41206
9 changed files with 13 additions and 15 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
import React from 'react'
import {useRef, useEffect} from 'react'
import PropTypes from 'prop-types'
import {Button, Dialog, DialogActions, DialogContent, DialogTitle, makeStyles, Typography} from '@material-ui/core'
import Cgu from '.'
import {useRouter} from 'next/router'
import Cgu from '.'
const CGU_DOWNLOAD_LINK = process.env.NEXT_PUBLIC_CGU_DOWNLOAD_LINK
@@ -25,8 +25,8 @@ export default function CGUDialog({open, setOpen}) {
router.push(CGU_DOWNLOAD_LINK)
}
const descriptionElementRef = React.useRef(null)
React.useEffect(() => {
const descriptionElementRef = useRef(null)
useEffect(() => {
if (open) {
const {current: descriptionElement} = descriptionElementRef
if (descriptionElement !== null) {