Fix linting errors and warnings
This commit is contained in:
parent
9ce74a7227
commit
41d152f0e3
3 changed files with 8 additions and 7 deletions
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue