chore: adjust admin page files
This commit is contained in:
parent
6821ceccec
commit
87b5cc7762
@ -4,10 +4,12 @@ import React from 'react'
|
|||||||
import {
|
import {
|
||||||
CreateFirstUser,
|
CreateFirstUser,
|
||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/CreateFirstUser'
|
} from "@payloadcms/next/pages/CreateFirstUser/index";
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from '@payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
export default async () => <CreateFirstUser config={config} />
|
const Page = async () => <CreateFirstUser config={config} />;
|
||||||
|
|
||||||
|
export default Page;
|
||||||
|
@ -4,10 +4,12 @@ import React from 'react'
|
|||||||
import {
|
import {
|
||||||
ForgotPassword,
|
ForgotPassword,
|
||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/ForgotPassword'
|
} from "@payloadcms/next/pages/ForgotPassword/index";
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import config from '@payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
export default async () => <ForgotPassword config={config} />
|
const Page = async () => <ForgotPassword config={config} />;
|
||||||
|
|
||||||
|
export default Page;
|
||||||
|
@ -1,10 +1,21 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
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 { Metadata } from 'next'
|
||||||
import config from '@payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
|
type Args = {
|
||||||
|
searchParams: { [key: string]: string | string[] };
|
||||||
|
};
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
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;
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
import {
|
||||||
import { Metadata } from 'next'
|
Logout,
|
||||||
import config from '@payload-config'
|
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 />
|
<Logout config={config} searchParams={searchParams} inactivity />
|
||||||
)
|
);
|
||||||
|
|
||||||
|
export default Page;
|
||||||
|
@ -1,10 +1,21 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Logout, generateMetadata as generateMeta } from '@payloadcms/next/pages/Logout'
|
import {
|
||||||
import { Metadata } from 'next'
|
Logout,
|
||||||
import config from '@payload-config'
|
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 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;
|
||||||
|
@ -4,10 +4,19 @@ import React from 'react'
|
|||||||
import {
|
import {
|
||||||
ResetPassword,
|
ResetPassword,
|
||||||
generateMetadata as generateMeta,
|
generateMetadata as generateMeta,
|
||||||
} from '@payloadcms/next/pages/ResetPassword'
|
} from "@payloadcms/next/pages/ResetPassword/index";
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from "next";
|
||||||
import config from '@payload-config'
|
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;
|
@ -1,10 +1,15 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
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 { Metadata } from 'next'
|
||||||
import config from '@payload-config'
|
import config from '@payload-config'
|
||||||
|
|
||||||
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
export const generateMetadata = async (): Promise<Metadata> => generateMeta({ config })
|
||||||
|
|
||||||
export default async () => <Unauthorized config={config} />
|
const Page = async () => <Unauthorized config={config} />;
|
||||||
|
|
||||||
|
export default Page;
|
@ -1,10 +1,22 @@
|
|||||||
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
|
||||||
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
/* DO NOT MODIFY IT BECAUSE IT COULD BE REWRITTEN AT ANY TIME. */
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Verify, generateMetadata as generateMeta } from '@payloadcms/next/pages/Verify'
|
import {
|
||||||
import { Metadata } from 'next'
|
Verify,
|
||||||
import config from '@payload-config'
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user