mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-02-01 20:10:35 +01:00
-
This commit is contained in:
parent
fbe2dc2958
commit
aec1f97ff8
@ -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,
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user