GraphQL and MUI license updates

This commit is contained in:
Darren Clarke 2023-07-17 12:23:12 +00:00 committed by GitHub
parent 90143e5e41
commit 21db95a8e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 811 additions and 207 deletions

View file

@ -1,6 +1,10 @@
import { Metadata } from "next";
import { ZammadOverview } from "./_components/ZammadOverview";
const getSection = (overview: string) => {
return overview.charAt(0).toUpperCase() + overview.slice(1);
};
type MetadataProps = {
params: {
overview: string;
@ -10,7 +14,7 @@ type MetadataProps = {
export async function generateMetadata({
params: { overview },
}: MetadataProps): Promise<Metadata> {
const section = overview.charAt(0).toUpperCase() + overview.slice(1);
const section = getSection(overview);
return {
title: `Link - ${section} Tickets`,
@ -31,6 +35,7 @@ type PageProps = {
};
export default function Page({ params: { overview } }: PageProps) {
console.log({ overview });
return <ZammadOverview name={overview} id={overviews[overview]} />;
const section = getSection(overview);
return <ZammadOverview name={section} id={overviews[overview]} />;
}