mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
restoring page titles
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
import { Suspense } from "react";
|
||||
import CourseContextProvider from "./context/CourseContextProvider";
|
||||
import { Metadata } from "next";
|
||||
import { getTitle } from "@/services/titleUtils";
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ courseName: string }>;
|
||||
}): Promise<Metadata> {
|
||||
const { courseName } = await params;
|
||||
return {
|
||||
title: getTitle(courseName),
|
||||
};
|
||||
}
|
||||
|
||||
export default async function CourseLayout({
|
||||
children,
|
||||
|
||||
Reference in New Issue
Block a user