diff --git a/src/components/ai/note-studio-panel.tsx b/src/components/ai/note-studio-panel.tsx index 4d8ee37..2cfb26c 100644 --- a/src/components/ai/note-studio-panel.tsx +++ b/src/components/ai/note-studio-panel.tsx @@ -126,7 +126,7 @@ export function NoteStudioPanel() {
{note().courseTitle}
-LIST
}); + const detail = createRoute({ + getParentRoute: () => root, + path: "/courses/$id", + component: () => { + throw new ApiError(404, "not found"); + }, + }); + const router = createRouter({ + routeTree: root.addChildren([list, detail]), + history: createMemoryHistory({ initialEntries: ["/courses/bad"] }), + defaultErrorComponent: RouteErrorFallback, + }); + + render(() =>403
-{t("common.accessDenied")}
-{t("errors.accessDeniedDescription")}
-403
+{t("common.accessDenied")}
+{t("errors.accessDeniedDescription")}
++ {t(role() === "parent" ? "errors.parentOnlyTitle" : "errors.studentOnlyTitle")} +
++ {t(alternative() ? "errors.audienceOnlyWithAlternative" : "errors.audienceOnlyDescription")} +
+404
-{t("common.notFound")}
+{t("errors.notFoundDescription")}