mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-27 07:58:31 -06:00
lots of hooks
This commit is contained in:
@@ -50,6 +50,7 @@ export default function CourseContextProvider({
|
||||
return (
|
||||
<CourseContext.Provider
|
||||
value={{
|
||||
courseName: localCourseName,
|
||||
startItemDrag: (d) => {
|
||||
setItemBeingDragged(d);
|
||||
},
|
||||
|
||||
@@ -8,15 +8,17 @@ export interface DraggableItem {
|
||||
}
|
||||
|
||||
export interface CourseContextInterface {
|
||||
courseName: string;
|
||||
startItemDrag: (dragging: DraggableItem) => void;
|
||||
endItemDrag: () => void;
|
||||
itemDrop: (droppedOnDay?: Date) => void;
|
||||
}
|
||||
|
||||
const defaultValue: CourseContextInterface = {
|
||||
startItemDrag: () => {},
|
||||
endItemDrag: () => {},
|
||||
itemDrop: () => {},
|
||||
startItemDrag: () => { },
|
||||
endItemDrag: () => { },
|
||||
itemDrop: () => { },
|
||||
courseName: ""
|
||||
};
|
||||
|
||||
export const CourseContext =
|
||||
|
||||
Reference in New Issue
Block a user