Fix lint errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react'
|
import {useRef, useEffect} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -19,8 +19,8 @@ export default function AwtisBiyografi({alias, teks, biyografi, esByografiOuve,
|
|||||||
meteEsByografiOuve(false)
|
meteEsByografiOuve(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
const descriptionElementRef = React.useRef(null)
|
const descriptionElementRef = useRef(null)
|
||||||
React.useEffect(() => {
|
useEffect(() => {
|
||||||
if (esByografiOuve) {
|
if (esByografiOuve) {
|
||||||
const {current: descriptionElement} = descriptionElementRef
|
const {current: descriptionElement} = descriptionElementRef
|
||||||
if (descriptionElement !== null) {
|
if (descriptionElement !== null) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import React from 'react'
|
import {useRef, useEffect} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {Button, Dialog, DialogActions, DialogContent, DialogTitle, makeStyles, Typography} from '@material-ui/core'
|
import {Button, Dialog, DialogActions, DialogContent, DialogTitle, makeStyles, Typography} from '@material-ui/core'
|
||||||
import Cgu from '.'
|
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
|
import Cgu from '.'
|
||||||
|
|
||||||
const CGU_DOWNLOAD_LINK = process.env.NEXT_PUBLIC_CGU_DOWNLOAD_LINK
|
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)
|
router.push(CGU_DOWNLOAD_LINK)
|
||||||
}
|
}
|
||||||
|
|
||||||
const descriptionElementRef = React.useRef(null)
|
const descriptionElementRef = useRef(null)
|
||||||
React.useEffect(() => {
|
useEffect(() => {
|
||||||
if (open) {
|
if (open) {
|
||||||
const {current: descriptionElement} = descriptionElementRef
|
const {current: descriptionElement} = descriptionElementRef
|
||||||
if (descriptionElement !== null) {
|
if (descriptionElement !== null) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import {Container, Link, makeStyles, Typography} from '@material-ui/core'
|
import {Container, Link, makeStyles, Typography} from '@material-ui/core'
|
||||||
import CGUDialog from './cgu/cgu-dialog'
|
import CGUDialog from './cgu/cgu-dialog'
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, {useEffect, useState} from 'react'
|
import {useEffect, useState} from 'react'
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {withStyles} from '@material-ui/core/styles'
|
import {withStyles} from '@material-ui/core/styles'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import React from 'react'
|
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
import {
|
import {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React from 'react'
|
import {useState} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ const useStyles = makeStyles(theme => ({
|
|||||||
export default function Navigasyon({selectedTab}) {
|
export default function Navigasyon({selectedTab}) {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
const [value, setValue] = React.useState(0)
|
const [value, setValue] = useState(0)
|
||||||
|
|
||||||
const handleChange = (event, newValue) => {
|
const handleChange = (event, newValue) => {
|
||||||
setValue(newValue)
|
setValue(newValue)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, {useState} from 'react'
|
import {useState} from 'react'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {MenuItem, withStyles, Menu, Button} from '@material-ui/core'
|
import {MenuItem, withStyles, Menu, Button} from '@material-ui/core'
|
||||||
import {uniq} from 'lodash'
|
import {uniq} from 'lodash'
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import React, {useEffect, useMemo, useState} from 'react'
|
import {useEffect, useMemo, useState} from 'react'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
import PropTypes from 'prop-types'
|
import PropTypes from 'prop-types'
|
||||||
import {createMuiTheme, ThemeProvider, makeStyles} from '@material-ui/core/styles'
|
import {createMuiTheme, ThemeProvider, makeStyles} from '@material-ui/core/styles'
|
||||||
|
|||||||
Reference in New Issue
Block a user