From 296306de7f485488cdafa8385144dcf3dac77ca5 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 1 Feb 2026 16:41:23 -0700 Subject: [PATCH] Rename functions here --- src/app/account/login/page.tsx | 10 +++++----- src/app/account/page.tsx | 2 +- src/app/account/reset-password/page.tsx | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/account/login/page.tsx b/src/app/account/login/page.tsx index 1e220a5..4d09057 100644 --- a/src/app/account/login/page.tsx +++ b/src/app/account/login/page.tsx @@ -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(true) const router = useRouter() @@ -122,19 +122,19 @@ function LoginForm ({ redirect }: { redirect: string | null }) { ) } -export default function LoginPage () { +export default function AccountLoginPage () { return ( Loading...

} > - +
) } -function LoginPageWithParams () { +function AccountLoginPageWithParams () { const params = useSearchParams() const redirect = params.get('redirect') - return + return } diff --git a/src/app/account/page.tsx b/src/app/account/page.tsx index c7ce57a..c4f80dc 100644 --- a/src/app/account/page.tsx +++ b/src/app/account/page.tsx @@ -6,7 +6,7 @@ import { getCookie } from '@/util/cookie' import { useEffect, useState } from 'react' import { useRouter } from 'next/navigation' -export default function AccountLoginPage () { +export default function AccountPage () { const [loading, setLoading] = useState(true) const router = useRouter() diff --git a/src/app/account/reset-password/page.tsx b/src/app/account/reset-password/page.tsx index 8cae9e4..e0901c6 100644 --- a/src/app/account/reset-password/page.tsx +++ b/src/app/account/reset-password/page.tsx @@ -8,7 +8,7 @@ import { Suspense, useEffect, useState } from 'react' import { useRouter, useSearchParams } from 'next/navigation' import { getCookie } from '@/util/cookie' -function ResetPasswordForm ({ codeParam }: { codeParam: string }) { +function AccountResetPasswordForm ({ codeParam }: { codeParam: string }) { const [loading, setLoading] = useState(true) const router = useRouter() @@ -128,17 +128,17 @@ function ResetPasswordForm ({ codeParam }: { codeParam: string }) { ) } -export default function ResetPasswordPage () { +export default function AccountResetPasswordPage () { return ( Loading...

} > - +
) } -function ResetPasswordPageWithParams () { +function AccountResetPasswordPageWithParams () { const params = useSearchParams() const code = params.get('code') @@ -151,5 +151,5 @@ function ResetPasswordPageWithParams () { ) - return + return }