Skip to content

Commit 580ab50

Browse files
committed
chore: upgrade deps
1 parent 7b78b29 commit 580ab50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+5374
-3092
lines changed

app/(auth)/login/page.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export const metadata: Metadata = {
1111
description: "Login to your account",
1212
}
1313

14-
export default function LoginPage() {
14+
export default function LoginPage({ searchParams }) {
15+
1516
return (
1617
<div className="container flex h-screen w-screen flex-col items-center justify-center">
1718
<Link
@@ -22,22 +23,22 @@ export default function LoginPage() {
2223
)}
2324
>
2425
<>
25-
<Icons.chevronLeft className="mr-2 h-4 w-4" />
26+
<Icons.chevronLeft className="mr-2 size-4" />
2627
Back
2728
</>
2829
</Link>
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">
31-
<Icons.logo className="mx-auto h-6 w-6" />
32+
<Icons.logo className="mx-auto size-6" />
3233
<h1 className="text-2xl font-semibold tracking-tight">
3334
Welcome back
3435
</h1>
35-
<p className="text-sm text-muted-foreground">
36+
<p className="text-muted-foreground text-sm">
3637
Enter your email to sign in to your account
3738
</p>
3839
</div>
39-
<UserAuthForm />
40-
<p className="px-8 text-center text-sm text-muted-foreground">
40+
<UserAuthForm from={searchParams.from} />
41+
<p className="text-muted-foreground px-8 text-center text-sm">
4142
<Link
4243
href="/register"
4344
className="hover:text-brand underline underline-offset-4"

app/(auth)/register/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata = {
1010
description: "Create an account to get started.",
1111
}
1212

13-
export default function RegisterPage() {
13+
export default function RegisterPage({ searchParams }) {
1414
return (
1515
<div className="container grid h-screen w-screen flex-col items-center justify-center lg:max-w-none lg:grid-cols-2 lg:px-0">
1616
<Link
@@ -22,20 +22,20 @@ export default function RegisterPage() {
2222
>
2323
Login
2424
</Link>
25-
<div className="hidden h-full bg-muted lg:block" />
25+
<div className="bg-muted hidden h-full lg:block" />
2626
<div className="lg:p-8">
2727
<div className="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
2828
<div className="flex flex-col space-y-2 text-center">
29-
<Icons.logo className="mx-auto h-6 w-6" />
29+
<Icons.logo className="mx-auto size-6" />
3030
<h1 className="text-2xl font-semibold tracking-tight">
3131
Create an account
3232
</h1>
33-
<p className="text-sm text-muted-foreground">
33+
<p className="text-muted-foreground text-sm">
3434
Enter your email below to create your account
3535
</p>
3636
</div>
37-
<UserAuthForm />
38-
<p className="px-8 text-center text-sm text-muted-foreground">
37+
<UserAuthForm from={searchParams.from} />
38+
<p className="text-muted-foreground px-8 text-center text-sm">
3939
By clicking continue, you agree to our{" "}
4040
<Link
4141
href="/terms"

app/(dashboard)/dashboard/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default async function DashboardLayout({
2222

2323
return (
2424
<div className="flex min-h-screen flex-col space-y-6">
25-
<header className="sticky top-0 z-40 border-b bg-background">
25+
<header className="bg-background sticky top-0 z-40 border-b">
2626
<div className="container flex h-16 items-center justify-between py-4">
2727
<MainNav items={dashboardConfig.mainNav} />
2828
<UserAccountNav

app/(dashboard)/dashboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default async function DashboardPage() {
4242
</DashboardHeader>
4343
<div>
4444
{posts?.length ? (
45-
<div className="divide-y divide-border rounded-md border">
45+
<div className="divide-border divide-y rounded-md border">
4646
{posts.map((post) => (
4747
<PostItem key={post.id} post={post} />
4848
))}

app/(docs)/guides/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default async function GuidePage({ params }: GuidePageProps) {
9999
href="/guides"
100100
className={cn(buttonVariants({ variant: "ghost" }))}
101101
>
102-
<Icons.chevronLeft className="mr-2 h-4 w-4" />
102+
<Icons.chevronLeft className="mr-2 size-4" />
103103
See all guides
104104
</Link>
105105
</div>

app/(docs)/guides/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function GuidesPage() {
4646
)}
4747
</div>
4848
{guide.date && (
49-
<p className="text-sm text-muted-foreground">
49+
<p className="text-muted-foreground text-sm">
5050
{formatDate(guide.date)}
5151
</p>
5252
)}

app/(docs)/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interface DocsLayoutProps {
1515
export default function DocsLayout({ children }: DocsLayoutProps) {
1616
return (
1717
<div className="flex min-h-screen flex-col">
18-
<header className="sticky top-0 z-40 w-full border-b bg-background">
18+
<header className="bg-background sticky top-0 z-40 w-full border-b">
1919
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
2020
<MainNav items={docsConfig.mainNav}>
2121
<DocsSidebarNav items={docsConfig.sidebarNav} />
@@ -30,7 +30,7 @@ export default function DocsLayout({ children }: DocsLayoutProps) {
3030
target="_blank"
3131
rel="noreferrer"
3232
>
33-
<Icons.gitHub className="h-7 w-7" />
33+
<Icons.gitHub className="size-7" />
3434
<span className="sr-only">GitHub</span>
3535
</Link>
3636
</nav>

app/(editor)/editor/[postId]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { notFound, redirect } from "next/navigation"
2-
import { Post, User } from "@prisma/client"
2+
import type { Post, User } from "@prisma/client"
33

44
import { authOptions } from "@/lib/auth"
55
import { db } from "@/lib/db"

app/(marketing)/[...slug]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ export default async function PagePage({ params }: PageProps) {
8585
return (
8686
<article className="container max-w-3xl py-6 lg:py-12">
8787
<div className="space-y-4">
88-
<h1 className="inline-block font-heading text-4xl lg:text-5xl">
88+
<h1 className="font-heading inline-block text-4xl lg:text-5xl">
8989
{page.title}
9090
</h1>
9191
{page.description && (
92-
<p className="text-xl text-muted-foreground">{page.description}</p>
92+
<p className="text-muted-foreground text-xl">{page.description}</p>
9393
)}
9494
</div>
9595
<hr className="my-4" />

app/(marketing)/blog/[...slug]/page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,19 @@ export default async function PostPage({ params }: PostPageProps) {
103103
"absolute left-[-200px] top-14 hidden xl:inline-flex"
104104
)}
105105
>
106-
<Icons.chevronLeft className="mr-2 h-4 w-4" />
106+
<Icons.chevronLeft className="mr-2 size-4" />
107107
See all posts
108108
</Link>
109109
<div>
110110
{post.date && (
111111
<time
112112
dateTime={post.date}
113-
className="block text-sm text-muted-foreground"
113+
className="text-muted-foreground block text-sm"
114114
>
115115
Published on {formatDate(post.date)}
116116
</time>
117117
)}
118-
<h1 className="mt-2 inline-block font-heading text-4xl leading-tight lg:text-5xl">
118+
<h1 className="font-heading mt-2 inline-block text-4xl leading-tight lg:text-5xl">
119119
{post.title}
120120
</h1>
121121
{authors?.length ? (
@@ -136,7 +136,7 @@ export default async function PostPage({ params }: PostPageProps) {
136136
/>
137137
<div className="flex-1 text-left leading-tight">
138138
<p className="font-medium">{author.title}</p>
139-
<p className="text-[12px] text-muted-foreground">
139+
<p className="text-muted-foreground text-[12px]">
140140
@{author.twitter}
141141
</p>
142142
</div>
@@ -152,15 +152,15 @@ export default async function PostPage({ params }: PostPageProps) {
152152
alt={post.title}
153153
width={720}
154154
height={405}
155-
className="my-8 rounded-md border bg-muted transition-colors"
155+
className="bg-muted my-8 rounded-md border transition-colors"
156156
priority
157157
/>
158158
)}
159159
<Mdx code={post.body} />
160160
<hr className="mt-12" />
161161
<div className="flex justify-center py-6 lg:py-10">
162162
<Link href="/blog" className={cn(buttonVariants({ variant: "ghost" }))}>
163-
<Icons.chevronLeft className="mr-2 h-4 w-4" />
163+
<Icons.chevronLeft className="mr-2 size-4" />
164164
See all posts
165165
</Link>
166166
</div>

0 commit comments

Comments
 (0)