summaryrefslogtreecommitdiff
path: root/apps/web/src/app/(auth)/signup
diff options
context:
space:
mode:
author3raphat <96657413+3raphat@users.noreply.github.com>2025-06-24 01:38:53 +0700
committer3raphat <96657413+3raphat@users.noreply.github.com>2025-06-24 01:38:53 +0700
commitf959ba87e20aaae42bc270edc127ae89b97241cb (patch)
tree6a7787aaa95e42e4f068412a37866d4796537861 /apps/web/src/app/(auth)/signup
parenta6a520db70ef639e066d1012fa2ecf7e26c53049 (diff)
downloadopencut-f959ba87e20aaae42bc270edc127ae89b97241cb.tar.gz
fix: update auth routes
Diffstat (limited to 'apps/web/src/app/(auth)/signup')
-rw-r--r--apps/web/src/app/(auth)/signup/page.tsx38
1 files changed, 29 insertions, 9 deletions
diff --git a/apps/web/src/app/(auth)/signup/page.tsx b/apps/web/src/app/(auth)/signup/page.tsx
index 3d125a07..d1feece2 100644
--- a/apps/web/src/app/(auth)/signup/page.tsx
+++ b/apps/web/src/app/(auth)/signup/page.tsx
@@ -44,7 +44,7 @@ function SignUpForm() {
return;
}
- router.push("/auth/login");
+ router.push("/login");
};
const handleGoogleSignUp = async () => {
@@ -80,7 +80,12 @@ function SignUpForm() {
size="lg"
disabled={isAnyLoading}
>
- {isGoogleLoading ? <Loader2 className="animate-spin" /> : (<GoogleIcon />)} Continue with Google
+ {isGoogleLoading ? (
+ <Loader2 className="animate-spin" />
+ ) : (
+ <GoogleIcon />
+ )}{" "}
+ Continue with Google
</Button>
<div className="relative">
@@ -88,7 +93,9 @@ function SignUpForm() {
<Separator className="w-full" />
</div>
<div className="relative flex justify-center text-xs uppercase">
- <span className="bg-background px-2 text-muted-foreground">Or continue with</span>
+ <span className="bg-background px-2 text-muted-foreground">
+ Or continue with
+ </span>
</div>
</div>
@@ -135,7 +142,11 @@ function SignUpForm() {
className="w-full h-11"
size="lg"
>
- {isEmailLoading ? <Loader2 className="animate-spin" /> : "Create account"}
+ {isEmailLoading ? (
+ <Loader2 className="animate-spin" />
+ ) : (
+ "Create account"
+ )}
</Button>
</div>
</div>
@@ -157,20 +168,29 @@ export default function SignUpPage() {
<Card className="w-[400px] shadow-lg border-0">
<CardHeader className="text-center pb-4">
- <CardTitle className="text-2xl font-semibold">Create your account</CardTitle>
+ <CardTitle className="text-2xl font-semibold">
+ Create your account
+ </CardTitle>
<CardDescription className="text-base">
Get started with your free account today
</CardDescription>
</CardHeader>
<CardContent className="pt-0">
- <Suspense fallback={<div className="text-center">
- <Loader2 className="animate-spin" />
- </div>}>
+ <Suspense
+ fallback={
+ <div className="text-center">
+ <Loader2 className="animate-spin" />
+ </div>
+ }
+ >
<SignUpForm />
</Suspense>
<div className="mt-6 text-center text-sm">
Already have an account?{" "}
- <Link href="/auth/login" className="font-medium text-primary underline-offset-4 hover:underline">
+ <Link
+ href="/login"
+ className="font-medium text-primary underline-offset-4 hover:underline"
+ >
Sign in
</Link>
</div>