mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
moving v2 to top level
This commit is contained in:
24
src/app/course/[courseName]/CourseSettingsLink.tsx
Normal file
24
src/app/course/[courseName]/CourseSettingsLink.tsx
Normal file
@@ -0,0 +1,24 @@
|
||||
"use client";
|
||||
|
||||
import { useLocalCourseSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
||||
import Link from "next/link";
|
||||
import { useCourseContext } from "./context/courseContext";
|
||||
import { getCourseSettingsUrl } from "@/services/urlUtils";
|
||||
|
||||
export default function CourseSettingsLink() {
|
||||
const { courseName } = useCourseContext();
|
||||
const [settings] = useLocalCourseSettingsQuery();
|
||||
return (
|
||||
<div>
|
||||
{settings.name}
|
||||
|
||||
<Link
|
||||
className="mx-3 underline"
|
||||
href={getCourseSettingsUrl(courseName)}
|
||||
shallow={true}
|
||||
>
|
||||
Course Settings
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user