Update dependencies

This commit is contained in:
Darren Clarke 2024-11-25 09:31:25 +01:00
parent 48aa89f7cf
commit 7ad25e8a95
49 changed files with 2116 additions and 1699 deletions

View file

@ -6,14 +6,15 @@ const getSection = (overview: string) => {
};
type MetadataProps = {
params: {
params: Promise<{
overview: string;
};
}>;
};
export async function generateMetadata({
params: { overview },
params,
}: MetadataProps): Promise<Metadata> {
const { overview } = await params;
const section = getSection(overview);
return {
@ -22,12 +23,13 @@ export async function generateMetadata({
}
type PageProps = {
params: {
params: Promise<{
overview: string;
};
}>;
};
export default function Page({ params: { overview } }: PageProps) {
export default async function Page({ params }: PageProps) {
const { overview } = await params;
const section = getSection(overview);
return <ZammadOverview name={section} />;