migrate to next 15 and react 19

This commit is contained in:
Milo Schwartz
2024-10-23 13:30:23 -04:00
parent 2322640dc0
commit ce19cc4ba4
20 changed files with 196 additions and 187 deletions

View File

@@ -3,11 +3,12 @@ import { verifySession } from "@app/lib/auth/verifySession";
import Link from "next/link";
import { redirect } from "next/navigation";
export default async function Page({
searchParams,
}: {
searchParams: { [key: string]: string | string[] | undefined };
}) {
export default async function Page(
props: {
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}
) {
const searchParams = await props.searchParams;
const user = await verifySession();
if (user) {

View File

@@ -3,11 +3,12 @@ import { verifySession } from "@app/lib/auth/verifySession";
import Link from "next/link";
import { redirect } from "next/navigation";
export default async function Page({
searchParams,
}: {
searchParams: { [key: string]: string | string[] | undefined };
}) {
export default async function Page(
props: {
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}
) {
const searchParams = await props.searchParams;
const user = await verifySession();
if (user) {

View File

@@ -2,11 +2,12 @@ import VerifyEmailForm from "@app/app/auth/verify-email/VerifyEmailForm";
import { verifySession } from "@app/lib/auth/verifySession";
import { redirect } from "next/navigation";
export default async function Page({
searchParams,
}: {
searchParams: { [key: string]: string | string[] | undefined };
}) {
export default async function Page(
props: {
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
}
) {
const searchParams = await props.searchParams;
const user = await verifySession();
if (!user) {