mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 23:58:31 -06:00
pushing state down with contexts
This commit is contained in:
@@ -2,8 +2,7 @@
|
||||
|
||||
import { useLocalCourseSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
||||
|
||||
|
||||
export default function CourseSettings({ courseName }: { courseName: string }) {
|
||||
const { data: settings } = useLocalCourseSettingsQuery(courseName);
|
||||
export default function CourseSettings() {
|
||||
const { data: settings } = useLocalCourseSettingsQuery();
|
||||
return <div>{settings.name}</div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user