This commit is contained in:
Reece 2025-11-12 17:14:56 +00:00
parent 1f255969c8
commit 9975776c6c
2 changed files with 1 additions and 5 deletions

View File

@ -1,6 +1,5 @@
import React, { useCallback, useState, useEffect, useRef, useMemo } from 'react';
import { Text, Checkbox } from '@mantine/core';
import { useMediaQuery } from '@mantine/hooks';
import { useIsMobile } from '@app/hooks/useIsMobile';
import ArrowBackIcon from '@mui/icons-material/ArrowBack';
import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
@ -86,9 +85,8 @@ const PageThumbnail: React.FC<PageThumbnailProps> = ({
const [isMouseDown, setIsMouseDown] = useState(false);
const [mouseStartPos, setMouseStartPos] = useState<{x: number, y: number} | null>(null);
const [isHovered, setIsHovered] = useState(false);
const isMobile = useMediaQuery('(max-width: 1024px)');
const isMobile = useIsMobile();
const lastClickTimeRef = useRef<number>(0);
const dragElementRef = useRef<HTMLDivElement>(null);
const [thumbnailUrl, setThumbnailUrl] = useState<string | null>(page.thumbnail);
const elementRef = useRef<HTMLDivElement | null>(null);

View File

@ -27,7 +27,6 @@ interface UsePageEditorCommandsParams {
selectedPageIds: string[];
setSelectedPageIds: (ids: string[]) => void;
getPageNumbersFromIds: (pageIds: string[]) => number[];
getPageIdsFromNumbers: (pageNumbers: number[]) => string[];
executeCommandWithTracking: (command: any) => void;
updateFileOrderFromPages: (pages: PDFPage[]) => void;
actions: FileActions;
@ -45,7 +44,6 @@ export const usePageEditorCommands = ({
selectedPageIds,
setSelectedPageIds,
getPageNumbersFromIds,
getPageIdsFromNumbers,
executeCommandWithTracking,
updateFileOrderFromPages,
actions,