starting to resurect tests

This commit is contained in:
2024-09-13 09:11:30 -06:00
parent 32b59b3975
commit 6b60e8eda6
19 changed files with 550 additions and 638 deletions

View File

@@ -1,14 +1,19 @@
"use client";
import { useLocalCourseNamesQuery } from "@/hooks/localCourse/localCoursesHooks";
import { useLocalCoursesSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
import { getCourseUrl } from "@/services/urlUtils";
import Link from "next/link";
export default function CourseList() {
const { data: courses } = useLocalCourseNamesQuery();
const { data: allSettings } = useLocalCoursesSettingsQuery();
return (
<div>
{courses.map((c) => (
<Link href={`/course/${c}`} key={c} shallow={true}>
{c}{" "}
{allSettings.map((settings) => (
<Link
href={getCourseUrl(settings.name)}
key={settings.name}
shallow={true}
>
{settings.name}
</Link>
))}
</div>