Skip to content

Commit decc99d

Browse files
committed
Update siteConfig usage in signin and signup pages
Replaced hardcoded text with references to siteConfig for site name and description in signin and signup pages. This change ensures consistent and dynamic site details across the application. Took 15 minutes
1 parent c406c50 commit decc99d

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

app/(auth)/signin/page.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { Metadata } from "next"
22
import Link from "next/link"
3+
import { siteConfig } from "@/config/site"
34

45
import { cn } from "@/lib/utils"
56
import { buttonVariants } from "@/components/ui/button"
67
import { Icons } from "@/components/icons"
78
import { UserAuthForm } from "@/components/user/user-auth-form"
89

910
export const metadata: Metadata = {
10-
title: "Enter Wishonia",
11-
description: "Become a citizen of Wishonia",
11+
title: `Enter ${siteConfig.name}`,
12+
description: siteConfig.description ,
1213
}
1314

1415
export default function Signin() {
@@ -27,22 +28,21 @@ export default function Signin() {
2728
</>
2829
</Link>
2930
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
30-
<div className="flex flex-col space-y-2 text-center">
31+
{/* <div className="flex flex-col space-y-2 text-center">
3132
<h1 className="text-2xl font-semibold tracking-tight">
32-
Welcome to Wishonia
33+
Welcome to {siteConfig.name}
3334
</h1>
3435
<p className="text-sm text-muted-foreground">
3536
Please verify your identity to enter the magical kingdom!
3637
</p>
37-
</div>
38+
</div> */}
3839
<UserAuthForm />
3940
<p className="px-8 text-center text-sm text-muted-foreground">
40-
Not a citizen yet?{" "}
4141
<Link
4242
href="/signup"
4343
className="hover:text-brand underline underline-offset-4"
4444
>
45-
Become a citizen
45+
Not a member yet?
4646
</Link>
4747
</p>
4848
</div>

app/(auth)/signup/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { cn } from "@/lib/utils"
55
import { buttonVariants } from "@/components/ui/button"
66
import { Icons } from "@/components/icons"
77
import { UserAuthForm } from "@/components/user/user-auth-form"
8+
import { siteConfig } from "@/config/site"
89

910
export const metadata: Metadata = {
1011
title: "Sign up",
@@ -29,7 +30,7 @@ export default function Signup() {
2930
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
3031
<div className="flex flex-col space-y-2 text-center">
3132
<h1 className="text-2xl font-semibold tracking-tight">
32-
Become a Citizen of Wishonia
33+
Join {siteConfig.name}
3334
</h1>
3435
<p className="text-sm text-muted-foreground">
3536
Select a provider to verify your identity

0 commit comments

Comments
 (0)