Fix linting errors and warnings

This commit is contained in:
aronmal 2023-02-12 02:17:22 +01:00
parent 9ce74a7227
commit 41d152f0e3
Signed by: aronmal
GPG key ID: 816B7707426FC612
3 changed files with 8 additions and 7 deletions

View file

@ -12,7 +12,7 @@ function LobbyFrame() {
if (enemy) return
const interval = setInterval(() => setDots((e) => (e % 3) + 1), 1000)
return () => clearInterval(interval)
}, [])
}, [enemy])
return (
<div className="mx-32 flex flex-col self-stretch rounded-3xl bg-gray-400">

View file

@ -1,9 +1,10 @@
import { faSpinnerThird } from "@fortawesome/pro-solid-svg-icons"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import React, { useState } from "react"
import { useState } from "react"
function login() {
function Login() {
const [loading, setLoading] = useState(false)
return (
<div className="flex h-screen w-full items-center justify-center bg-gray-900 bg-[url('/images/wallpaper.jpg')] bg-cover bg-center bg-no-repeat">
<div className="rounded-xl bg-gray-800 bg-opacity-50 px-16 py-10 shadow-lg backdrop-blur-md max-sm:px-8">
@ -62,4 +63,4 @@ function login() {
)
}
export default login
export default Login

View file

@ -3,13 +3,13 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import { useRouter } from "next/router"
import React, { useEffect } from "react"
function logout() {
function Logout() {
const router = useRouter()
useEffect(() => {
const timeout = setTimeout(() => router.push("/dev"), 2000)
return () => clearTimeout(timeout)
}, [])
}, [router])
return (
<div className="flex h-screen w-full items-center justify-center bg-gray-900 bg-[url('/images/wallpaper.jpg')] bg-cover bg-center bg-no-repeat">
@ -35,4 +35,4 @@ function logout() {
)
}
export default logout
export default Logout