chore: adjust admin page files

This commit is contained in:
Jarrod Flesch 2024-03-01 11:59:50 -05:00
parent 6821ceccec
commit 87b5cc7762
8 changed files with 90 additions and 28 deletions

View File

@ -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<Metadata> => generateMeta({ config })
export default async () => <CreateFirstUser config={config} />
const Page = async () => <CreateFirstUser config={config} />;
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
export default async () => <ForgotPassword config={config} />
const Page = async () => <ForgotPassword config={config} />;
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
export default async ({ searchParams }) => <Login config={config} searchParams={searchParams} />
const Page = async ({ searchParams }: Args) => (
<Login config={config} searchParams={searchParams} />
);
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
type Args = {
searchParams: { [key: string]: string | string[] };
};
export default async ({ searchParams }) => (
export const generateMetadata = async (): Promise<Metadata> =>
generateMeta({ config });
const Page = async ({ searchParams }: Args) => (
<Logout config={config} searchParams={searchParams} inactivity />
)
);
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
export default async ({ searchParams }) => <Logout config={config} searchParams={searchParams} />
const Page = async ({ searchParams }: Args) => (
<Logout config={config} searchParams={searchParams} />
);
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
type Args = {
params: { [key: string]: string };
};
export default async ({ params }) => <ResetPassword config={config} token={params.token} />
export const generateMetadata = async (): Promise<Metadata> =>
generateMeta({ config });
const Page = async ({ params }: Args) => (
<ResetPassword config={config} token={params.token} />
);
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
export default async () => <Unauthorized config={config} />
const Page = async () => <Unauthorized config={config} />;
export default Page;

View File

@ -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<Metadata> => generateMeta({ config })
type Args = {
params: { [key: string]: string };
};
export default async ({ params }) => <Verify config={config} token={params.token} />
export const generateMetadata = async (): Promise<Metadata> =>
generateMeta({ config });
const Page = async ({ params }: Args) => (
<Verify config={config} token={params.token} />
);
export default Page;