chore(templates): more next.js promises (#8599)
Continuation of #8547 . Missed some type updates.
This commit is contained in:
@@ -7,12 +7,12 @@ import { NotFoundPage, generatePageMetadata } from '@payloadcms/next/views'
|
|||||||
import { importMap } from '../importMap'
|
import { importMap } from '../importMap'
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
params: {
|
params: Promise<{
|
||||||
segments: string[]
|
segments: string[]
|
||||||
}
|
}>
|
||||||
searchParams: {
|
searchParams: Promise<{
|
||||||
[key: string]: string | string[]
|
[key: string]: string | string[]
|
||||||
}
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
|
|||||||
import { importMap } from '../importMap'
|
import { importMap } from '../importMap'
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
params: {
|
params: Promise<{
|
||||||
segments: string[]
|
segments: string[]
|
||||||
}
|
}>
|
||||||
searchParams: {
|
searchParams: Promise<{
|
||||||
[key: string]: string | string[]
|
[key: string]: string | string[]
|
||||||
}
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
|
|||||||
import { importMap } from '../importMap'
|
import { importMap } from '../importMap'
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
params: {
|
params: Promise<{
|
||||||
segments: string[]
|
segments: string[]
|
||||||
}
|
}>
|
||||||
searchParams: {
|
searchParams: Promise<{
|
||||||
[key: string]: string | string[]
|
[key: string]: string | string[]
|
||||||
}
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
|
|||||||
import { importMap } from '../importMap'
|
import { importMap } from '../importMap'
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
params: {
|
params: Promise<{
|
||||||
segments: string[]
|
segments: string[]
|
||||||
}
|
}>
|
||||||
searchParams: {
|
searchParams: Promise<{
|
||||||
[key: string]: string | string[]
|
[key: string]: string | string[]
|
||||||
}
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||||||
|
|||||||
@@ -7,12 +7,12 @@ import { RootPage, generatePageMetadata } from '@payloadcms/next/views'
|
|||||||
import { importMap } from '../importMap'
|
import { importMap } from '../importMap'
|
||||||
|
|
||||||
type Args = {
|
type Args = {
|
||||||
params: {
|
params: Promise<{
|
||||||
segments: string[]
|
segments: string[]
|
||||||
}
|
}>
|
||||||
searchParams: {
|
searchParams: Promise<{
|
||||||
[key: string]: string | string[]
|
[key: string]: string | string[]
|
||||||
}
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
export const generateMetadata = ({ params, searchParams }: Args): Promise<Metadata> =>
|
||||||
|
|||||||
Reference in New Issue
Block a user