mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
updates
This commit is contained in:
21
nextjs/src/app/course/[courseName]/CourseNavigation.tsx
Normal file
21
nextjs/src/app/course/[courseName]/CourseNavigation.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
"use client";
|
||||
import { useLocalCourseSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
||||
import Link from "next/link";
|
||||
|
||||
export function CourseNavigation() {
|
||||
const { data: settings } = useLocalCourseSettingsQuery();
|
||||
return (
|
||||
<div className="pb-1 ps-5 flex flex-row gap-3">
|
||||
<Link href={"/"} className="btn">
|
||||
Back to Course List
|
||||
</Link>
|
||||
<a
|
||||
href={`https://snow.instructure.com/courses/${settings.canvasId}`}
|
||||
className="btn"
|
||||
target="_blank"
|
||||
>
|
||||
View in Canvas
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user