mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
starting to resurect tests
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user