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