Rename functions here
This commit is contained in:
@@ -8,7 +8,7 @@ import { DiscordButton } from '@/app/components/DiscordButton'
|
||||
import axios from 'axios'
|
||||
import Link from 'next/link'
|
||||
|
||||
function LoginForm ({ redirect }: { redirect: string | null }) {
|
||||
function AccountLoginForm ({ redirect }: { redirect: string | null }) {
|
||||
const [loading, setLoading] = useState<boolean>(true)
|
||||
const router = useRouter()
|
||||
|
||||
@@ -122,19 +122,19 @@ function LoginForm ({ redirect }: { redirect: string | null }) {
|
||||
)
|
||||
}
|
||||
|
||||
export default function LoginPage () {
|
||||
export default function AccountLoginPage () {
|
||||
return (
|
||||
<Suspense
|
||||
fallback={<p className='px-8 -mt-2 -mb-2 text-center'>Loading...</p>}
|
||||
>
|
||||
<LoginPageWithParams />
|
||||
<AccountLoginPageWithParams />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
|
||||
function LoginPageWithParams () {
|
||||
function AccountLoginPageWithParams () {
|
||||
const params = useSearchParams()
|
||||
const redirect = params.get('redirect')
|
||||
|
||||
return <LoginForm redirect={redirect} />
|
||||
return <AccountLoginForm redirect={redirect} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user