Improve this
This commit is contained in:
@@ -7,6 +7,7 @@ import { HomeButton } from '@/app/components/HomeButton'
|
||||
import { DiscordButton } from '@/app/components/DiscordButton'
|
||||
import axios from 'axios'
|
||||
import Link from 'next/link'
|
||||
import { BackButton } from '@/app/components/BackButton'
|
||||
|
||||
function AccountLoginForm ({ redirect }: { redirect: string | null }) {
|
||||
const [loading, setLoading] = useState<boolean>(true)
|
||||
@@ -29,7 +30,7 @@ function AccountLoginForm ({ redirect }: { redirect: string | null }) {
|
||||
|
||||
return (
|
||||
<div className='box'>
|
||||
<HomeButton />
|
||||
{alreadyLoggedIn ? <BackButton href='/account' /> : <HomeButton />}
|
||||
<DiscordButton />
|
||||
<p className={`px-8 ${loading ? '-my-2' : 'mb-4 -mt-2'} text-center`}>
|
||||
{loading
|
||||
|
||||
Reference in New Issue
Block a user