mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
advanced frontend also being managed by 2.0
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
import React, { ReactNode } from "react";
|
||||
import { useDraggingContext } from "../context/draggingContext";
|
||||
|
||||
export default function DropTargetStyling({
|
||||
children,
|
||||
draggingClassName,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
draggingClassName: string;
|
||||
}) {
|
||||
const { isDragging } = useDraggingContext();
|
||||
return (
|
||||
<div
|
||||
className={
|
||||
"h-full transition-all duration-500 " +
|
||||
(isDragging ? draggingClassName : "")
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import Link from "next/link";
|
||||
import { useLocalCourseSettingsQuery } from "@/hooks/localCourse/localCoursesHooks";
|
||||
import { getDayOfWeek } from "@/models/local/localCourse";
|
||||
import { getLectureUrl } from "@/services/urlUtils";
|
||||
import DropTargetStyling from "../DropTargetStyling";
|
||||
import DropTargetStyling from "../../../../../components/DropTargetStyling";
|
||||
import { DraggableListItem } from "./DraggableListItem";
|
||||
import { useTodaysItems } from "./useTodaysItems";
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import { ModuleCanvasStatus } from "./ModuleCanvasStatus";
|
||||
import ClientOnly from "@/components/ClientOnly";
|
||||
import ExpandIcon from "../../../../components/icons/ExpandIcon";
|
||||
import { useDraggingContext } from "../context/draggingContext";
|
||||
import DropTargetStyling from "../calendar/DropTargetStyling";
|
||||
import DropTargetStyling from "../../../../components/DropTargetStyling";
|
||||
import Link from "next/link";
|
||||
import { getModuleItemUrl } from "@/services/urlUtils";
|
||||
import { useCourseContext } from "../context/courseContext";
|
||||
|
||||
Reference in New Issue
Block a user