can update quiz

This commit is contained in:
2024-08-30 13:15:10 -06:00
parent 51069a856a
commit 09b387c328
12 changed files with 227 additions and 94 deletions

View File

@@ -54,7 +54,13 @@ export default function DayItemsInModule({
key={q.name}
role="button"
draggable="true"
onDragStart={() => startItemDrag({ type: "quiz", item: q })}
onDragStart={() =>
startItemDrag({
type: "quiz",
item: q,
sourceModuleName: moduleName,
})
}
onDragEnd={endItemDrag}
>
{q.name}
@@ -65,7 +71,13 @@ export default function DayItemsInModule({
key={p.name}
role="button"
draggable="true"
onDragStart={() => startItemDrag({ type: "page", item: p })}
onDragStart={() =>
startItemDrag({
type: "page",
item: p,
sourceModuleName: moduleName,
})
}
>
{p.name}
</li>