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