+
+
+
+ URY Automatic Playout
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/showplanner/Item.tsx b/src/showplanner/Item.tsx
index c651346..e7efef5 100644
--- a/src/showplanner/Item.tsx
+++ b/src/showplanner/Item.tsx
@@ -1,15 +1,16 @@
import React, { memo } from "react";
-import { PlanItem, itemId } from "./state";
+import { PlanItem, itemId, isTrack, isAux } from "./state";
import { Track, AuxItem } from "../api";
import { useDispatch, useSelector } from "react-redux";
import { RootState } from "../rootReducer";
import * as MixerState from "../mixer/state";
import { Draggable } from "react-beautiful-dnd";
-import { ContextMenuTrigger } from "react-contextmenu";
+import { contextMenu } from "react-contexify";
import "./item.scss";
export const TS_ITEM_MENU_ID = "SongMenu";
+export const TS_ITEM_AUX_ID = "AuxMenu";
export const Item = memo(function Item({
item: x,
@@ -22,7 +23,6 @@ export const Item = memo(function Item({
}) {
const dispatch = useDispatch();
const id = itemId(x);
- const isReal = "timeslotitemid" in x;
const isGhost = "ghostid" in x;
const loadedItem = useSelector(
@@ -45,6 +45,31 @@ export const Item = memo(function Item({
}
}
+ function openContextMenu(e: React.MouseEvent