diff --git a/src/app/(payload)/admin/create-first-user/page.tsx b/src/app/(payload)/admin/create-first-user/page.tsx index 4d2afb2..59a16d3 100644 --- a/src/app/(payload)/admin/create-first-user/page.tsx +++ b/src/app/(payload)/admin/create-first-user/page.tsx @@ -4,10 +4,12 @@ import React from 'react' import { CreateFirstUser, generateMetadata as generateMeta, -} from '@payloadcms/next/pages/CreateFirstUser' +} from "@payloadcms/next/pages/CreateFirstUser/index"; import { Metadata } from 'next' import config from '@payload-config' export const generateMetadata = async (): Promise => generateMeta({ config }) -export default async () => +const Page = async () => ; + +export default Page; diff --git a/src/app/(payload)/admin/forgot/page.tsx b/src/app/(payload)/admin/forgot/page.tsx index 036f58a..49debda 100644 --- a/src/app/(payload)/admin/forgot/page.tsx +++ b/src/app/(payload)/admin/forgot/page.tsx @@ -4,10 +4,12 @@ import React from 'react' import { ForgotPassword, generateMetadata as generateMeta, -} from '@payloadcms/next/pages/ForgotPassword' +} from "@payloadcms/next/pages/ForgotPassword/index"; import { Metadata } from 'next' import config from '@payload-config' export const generateMetadata = async (): Promise => generateMeta({ config }) -export default async () => +const Page = async () => ; + +export default Page; diff --git a/src/app/(payload)/admin/login/page.tsx b/src/app/(payload)/admin/login/page.tsx index 0c1a4f9..b15ff05 100644 --- a/src/app/(payload)/admin/login/page.tsx +++ b/src/app/(payload)/admin/login/page.tsx @@ -1,10 +1,21 @@ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ import React from 'react' -import { Login, generateMetadata as generateMeta } from '@payloadcms/next/pages/Login' +import { + Login, + generateMetadata as generateMeta, +} from "@payloadcms/next/pages/Login/index"; import { Metadata } from 'next' import config from '@payload-config' +type Args = { + searchParams: { [key: string]: string | string[] }; +}; + export const generateMetadata = async (): Promise => generateMeta({ config }) -export default async ({ searchParams }) => +const Page = async ({ searchParams }: Args) => ( + +); + +export default Page; diff --git a/src/app/(payload)/admin/logout-inactivity/page.tsx b/src/app/(payload)/admin/logout-inactivity/page.tsx index 1edb8e4..3f207a2 100644 --- a/src/app/(payload)/admin/logout-inactivity/page.tsx +++ b/src/app/(payload)/admin/logout-inactivity/page.tsx @@ -1,12 +1,22 @@ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ import React from 'react' -import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout' -import { Metadata } from 'next' -import config from '@payload-config' +import { + Logout, + generateMetadata as generateMeta, +} from "@payloadcms/next/pages/Logout/index"; +import { Metadata } from "next"; +import config from "@payload-config"; -export const generateMetadata = async (): Promise => generateMeta({ config }) +type Args = { + searchParams: { [key: string]: string | string[] }; +}; -export default async ({ searchParams }) => ( +export const generateMetadata = async (): Promise => + generateMeta({ config }); + +const Page = async ({ searchParams }: Args) => ( -) +); + +export default Page; diff --git a/src/app/(payload)/admin/logout/page.tsx b/src/app/(payload)/admin/logout/page.tsx index e0b81ec..b4c6dbc 100644 --- a/src/app/(payload)/admin/logout/page.tsx +++ b/src/app/(payload)/admin/logout/page.tsx @@ -1,10 +1,21 @@ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ import React from 'react' -import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout' -import { Metadata } from 'next' -import config from '@payload-config' +import { + Logout, + generateMetadata as generateMeta, +} from "@payloadcms/next/pages/Logout/index"; +import { Metadata } from "next"; +import config from "@payload-config"; + +type Args = { + searchParams: { [key: string]: string | string[] }; +}; export const generateMetadata = async (): Promise => generateMeta({ config }) -export default async ({ searchParams }) => +const Page = async ({ searchParams }: Args) => ( + +); + +export default Page; diff --git a/src/app/(payload)/admin/reset/[token]/page.tsx b/src/app/(payload)/admin/reset/[token]/page.tsx index dede4ba..2f5e4ae 100644 --- a/src/app/(payload)/admin/reset/[token]/page.tsx +++ b/src/app/(payload)/admin/reset/[token]/page.tsx @@ -4,10 +4,19 @@ import React from 'react' import { ResetPassword, generateMetadata as generateMeta, -} from '@payloadcms/next/pages/ResetPassword' -import { Metadata } from 'next' -import config from '@payload-config' +} from "@payloadcms/next/pages/ResetPassword/index"; +import { Metadata } from "next"; +import config from "@payload-config"; -export const generateMetadata = async (): Promise => generateMeta({ config }) +type Args = { + params: { [key: string]: string }; +}; -export default async ({ params }) => +export const generateMetadata = async (): Promise => + generateMeta({ config }); + +const Page = async ({ params }: Args) => ( + +); + +export default Page; \ No newline at end of file diff --git a/src/app/(payload)/admin/unauthorized/page.tsx b/src/app/(payload)/admin/unauthorized/page.tsx index 3f53a2a..22b219c 100644 --- a/src/app/(payload)/admin/unauthorized/page.tsx +++ b/src/app/(payload)/admin/unauthorized/page.tsx @@ -1,10 +1,15 @@ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ import React from 'react' -import { Unauthorized, generateMetadata as generateMeta } from '@payloadcms/next/pages/Unauthorized' +import { + Unauthorized, + generateMetadata as generateMeta, +} from "@payloadcms/next/pages/Unauthorized/index"; import { Metadata } from 'next' import config from '@payload-config' export const generateMetadata = async (): Promise => generateMeta({ config }) -export default async () => +const Page = async () => ; + +export default Page; \ No newline at end of file diff --git a/src/app/(payload)/admin/verify/[token]/page.tsx b/src/app/(payload)/admin/verify/[token]/page.tsx index 03b35a3..4475650 100644 --- a/src/app/(payload)/admin/verify/[token]/page.tsx +++ b/src/app/(payload)/admin/verify/[token]/page.tsx @@ -1,10 +1,22 @@ /* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */ /* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */ import React from 'react' -import { Verify, generateMetadata as generateMeta } from '@payloadcms/next/pages/Verify' -import { Metadata } from 'next' -import config from '@payload-config' +import { + Verify, + generateMetadata as generateMeta, +} from "@payloadcms/next/pages/Verify/index"; +import { Metadata } from "next"; +import config from "@payload-config"; -export const generateMetadata = async (): Promise => generateMeta({ config }) +type Args = { + params: { [key: string]: string }; +}; -export default async ({ params }) => +export const generateMetadata = async (): Promise => + generateMeta({ config }); + +const Page = async ({ params }: Args) => ( + +); + +export default Page;