This commit is contained in:
Reece 2025-10-25 14:19:32 +01:00
parent fbe2dc2958
commit aec1f97ff8
3 changed files with 1 additions and 12 deletions

View File

@ -30,7 +30,7 @@ export default function Workbench() {
const setCurrentView = navActions.setWorkbench;
// Create stable reference for activeFiles based on file IDs
const activeFiles = useMemo(() => selectors.getFiles(), [state.files.ids.join(',')]);
const activeFiles = useMemo(() => selectors.getFiles(), [state.files.ids]);
const {
previewFile,
pageEditorFunctions,

View File

@ -1104,13 +1104,9 @@ const PageEditor = ({
movingPage={movingPage}
isAnimating={isAnimating}
isBoxSelected={isBoxSelected}
boxSelectedPageIds={boxSelectedIds}
clearBoxSelection={clearBoxSelection}
getBoxSelection={getBoxSelection}
activeId={activeId}
activeDragIds={activeDragIds}
justMoved={justMoved}
isOver={isOver}
pageRefs={refs}
dragHandleProps={dragHandleProps}
onReorderPages={handleReorderPages}

View File

@ -28,13 +28,9 @@ interface PageThumbnailProps {
movingPage: number | null;
isAnimating: boolean;
isBoxSelected?: boolean;
boxSelectedPageIds?: string[];
clearBoxSelection?: () => void;
getBoxSelection?: () => string[];
activeId: string | null;
activeDragIds: string[];
justMoved?: boolean;
isOver: boolean;
pageRefs: React.MutableRefObject<Map<string, HTMLDivElement>>;
dragHandleProps?: any;
onReorderPages: (sourcePageNumber: number, targetIndex: number, selectedPageIds?: string[]) => void;
@ -65,11 +61,8 @@ const PageThumbnail: React.FC<PageThumbnailProps> = ({
movingPage,
isAnimating,
isBoxSelected = false,
// boxSelectedPageIds,
clearBoxSelection,
// getBoxSelection,
activeDragIds,
// isOver,
pageRefs,
dragHandleProps,
onReorderPages,